This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
NX: Reading from the DB
TOMCAT Environmental Variables
Weird error
design the Java swing with dynamic creation of JTextfield,JLabel,Jcombobox
SCJP 1.5 review - not a so good test?