aspose 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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


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

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.
It is sorta covered in the JavaRanch Style Guide.
subject: NoClassDefFoundError