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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

kelvin cheung
Ranch Hand

Joined: Mar 27, 2004
Posts: 120
java.lang.NoClassDefFoundError: javaapplication1/Client
Exception in thread "main"
Java Result: 1


what does this mean?
Horatio Westock
Ranch Hand

Joined: Feb 23, 2005
Posts: 221
Hi!

It looks like you might not have you CLASSPATH correct. Try reading this article about how to set the classpath.
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
Never use CLASSPATH. Use -classpath. If you set CLASSPATH, something might change it on you later. It's pointless to rely on that when it's trivial to supply the classpath with a switch. Furthermore, in most hello-world examples you are better off NOT setting CLASSPATH or -classpath. Then you learn that the current directory is the classpath by default.

How many more CLASSPATH questions? Oh, probably another 10,000,000 or so going forward.
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
BTW, the information on that link is terrible. Too bad somebody doesn't update it with more and more accurate information in less space.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError
 
Similar Threads
TOMCAT Environmental Variables
Weird error
NX: Reading from the DB
SCJP 1.5 review - not a so good test?
design the Java swing with dynamic creation of JTextfield,JLabel,Jcombobox