NoClassDefFoundError

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SolBet
    New Member
    • Apr 2007
    • 2

    NoClassDefFoundError

    Hellow there !

    I was working on java programming well but today morning, it compiles successfully. However when I try to execute, it throws an exceptions
    of NoClassDefFound Error:
    I can not fix it ?
    Help please?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    That error is thrown by the Java virtual machine when it can't find the specified
    class. The JVM searches the value of a classpath variable which is a list of
    directories and .jar files. Those directories tell the JVM where it can find classes.

    You can specify this classpath variable on the command line. Assuming that
    your current working directory is where the .class files are stored you can simply
    do this:
    Code:
    java -classpath . YourClassFile
    The dot '.' denotes the current working directory.

    kind regards,

    Jos

    Comment

    Working...