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 NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Anila Mathew
Ranch Hand

Joined: Jun 16, 2004
Posts: 69

I am getting this error, Exception in thread, NoClassDefFoundError, when trying to run a program.I have set classpath, Path and JAVA_HOME.what else to do to run the program?
Raghu Shree
Ranch Hand

Joined: Mar 18, 2005
Posts: 143
I think you have missed to refer current folder ie., working directory in your classpath. Add ;.; to your classpath. For example CLASSPATH=c:\j2ee\ tools.jar;.;


Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError