permaculture playing cards
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 REST with Spring (video course) this week in the Spring 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
(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"
I agree. Here's the link:
subject: java.lang.NoClassDefFoundError
It's not a secret anymore!