Results 1 to 4 of 4
  1. #1
    rreinh04 is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Default Noclassdeffounderror

    I am brand new to Java and am going to be taking a college class in a coouple days.. I just installed Java SDK 7u5 and then download some example Java applications to my C drive. I try to run one of these apps and am getting the following error.


    C:\examples\ch01\ATM>java atmcasestudy
    Exception in thread "main" java.lang.NoClassDefFoundError: atmcasestudy (wrong n
    ame: ATMCaseStudy)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.launcher.LauncherHelper.checkAndLoadMain(Unkno wn Source)

    C:\examples\ch01\ATM>

    This is what is in my Path and Classpath under system variables

    CLASSPATH .;C:\Program Files\Java\jdk1.7.0_05\lib

    PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0_05\bin


    Can someone tell me what I have misconfigured?

    Thank You

  2. #2
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: Noclassdeffounderror

    Capitalization matters in java.

  3. #3
    rreinh04 is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Default Re: Noclassdeffounderror

    Thank You very much.... Now that was an ID10T error

  4. #4
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: Noclassdeffounderror

    It happens, don't let it slow you down.

Similar Threads

  1. NoClassDefFoundError
    By PeDz in forum JCreator
    Replies: 17
    Last Post: 02-06-2012, 01:42 AM
  2. NoClassDefFoundError
    By PeDz in forum Advanced Java
    Replies: 1
    Last Post: 02-04-2012, 03:44 PM
  3. NoClassDefFoundError
    By sriram56 in forum IntelliJ IDEA
    Replies: 0
    Last Post: 11-26-2011, 04:04 AM
  4. NoClassDefFoundError
    By Leeish in forum Advanced Java
    Replies: 10
    Last Post: 09-27-2011, 10:08 AM
  5. NoClassDefFoundError
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-18-2008, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •