learn java
The moose likes Beginning Java and the fly likes java.lang.NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.NoClassDefFoundError" Watch "java.lang.NoClassDefFoundError" New topic


vivi santa

Joined: Feb 02, 2001
Posts: 26
I am very new to java
I just want to know when I complied a file say
javac class1.java
(I get the class1.class)
java class1
(throw the java.lang.NoClassDefFoundError)
what this mean and how to solve this?
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
It means the class file is not found. It isn't in the directory you ran java from and it is not in your classpath.
frank davis
Ranch Hand

Joined: Feb 12, 2001
Posts: 1479
On a windows system, on the command line type "set classpath=C:\whateverfolderFileisIn"
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: java.lang.NoClassDefFoundError