Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.No Class Def Found Error

 
ronald hutchens
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Grishma Dube
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9065
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Windows, and if you see this error as Windows is starting, you have a faulty version of Windows.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What makes you say that?
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: ;.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic