File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Error" Watch "Error" New topic
Author

Error

Neha Sawant
Ranch Hand

Joined: Oct 11, 2001
Posts: 204
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


nss
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Neha Sawant
Ranch Hand

Joined: Oct 11, 2001
Posts: 204
Thanx Valentin,
i got my mistake and it is now working perfectly fine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error