Java runtime error

Discussion in 'QnA (read only)' started by diab0lic666, Oct 22, 2004.

Thread Status:
Not open for further replies.
  1. diab0lic666

    diab0lic666 New Member

    Joined:
    Sep 3, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Godless Savage Garden.
    hey there. i am new to java, and am facing strange problem. i have JDK1.3 installed. whenever i try to RUN class file i get this error msg:

    Code:
    C:\jdk1.3\bin>java volcanoRobot
    Exception in thread "main" java.lang.NoClassDefFoundError: volcanoRobot (wrong n
    ame: VolcanoRobot)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    Any Java master here? thx
     
  2. iinfi

    iinfi mekalodu

    Joined:
    Oct 22, 2004
    Messages:
    1,534
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Navi Mumbai
    either your file name and java's main class name do not match OR your java runtime is not installed properly OR your have recently installed J2EE and the environment variables does not contain/mention the root directory (ie . )

    the main problem is i think with the .;c:\jdk1.3;....
    mention " . " on both path and classpath environment variables
     
  3. OP
    OP
    diab0lic666

    diab0lic666 New Member

    Joined:
    Sep 3, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Godless Savage Garden.
    Hey thx budd. Yea i was typing the class name wrong. the letter 'V' in VolcanoRobot is capital. Damn i need some sleep.
     
Thread Status:
Not open for further replies.

Share This Page