Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error  RSS feed

 
Neha Sawant
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When i run a particular program it gets compiled but at Runtime i am getting NoClassDefFoundError
What error is this and how do i get rid of this.
Regards
Neha
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that your JVM needs to load a class that the classloader cannot find within the given CLASSPATH. Pay special attention in setting that variable.
If all your classes are in the same directory try giving the "-classpath ." option to java or javac.
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Neha Sawant
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Valentin,
i got my mistake and it is now working perfectly fine
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!