This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java.lang.No Class Def Found Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.No Class Def Found Error" Watch "java.lang.No Class Def Found Error" New topic
Author

java.lang.No Class Def Found Error

ronald hutchens
Greenhorn

Joined: Jul 14, 2003
Posts: 1
java.lang.No Class Def Found Error. what does it mean how can i fix it.
i get this every time i boot up
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

It means that the Java runtime (the "JVM") can't find a particular class; usually this message ends with the name of the missing class.
Now, what do you mean here by "boot up?" Where do you see the message?


[Jess in Action][AskingGoodQuestions]
Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
If u r getting this error while excuting java program, then there must something wrong in your jdk classpath.
U check up ur classpath and then try it.
And what do u mean by boot up, u shouldn't get such kind of error while starting the machine.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
If you are using Windows, and if you see this error as Windows is starting, you have a faulty version of Windows.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What makes you say that?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
how come this is related to windows???
Question is not clear, but this error means there is problem with the classpath
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Originally posted by bhart nagpal:
how come this is related to windows???
Question is not clear, but this error means there is problem with the classpath

Right, add a dot to the class path followed by a semicolon.
i.e:
at the beginning of the classpath add: .;
or
in the middle somewhere: stuff;.;other stuff
or
at the end of the classpath: ;.


Thanks, leo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.No Class Def Found Error
 
Similar Threads
Trying to run my first program: java.lang.NoClassDefFoundError
Need version when Class TagSupport is added to jsp.api
Help! java.lang.No Class Def ErrorFound: cool
java.lang.No Class Def Found Error
Exception in thread "main" java.lang.No Class Def Found Error : org/w3c/dom/Node