Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.NoClassDefFoundError" Watch "java.lang.NoClassDefFoundError" New topic
Author

java.lang.NoClassDefFoundError

vivi santa
Greenhorn

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?
Thanks~
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: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError
 
Similar Threads
Packaging help
Accessing component from main class.... Help!
Package & Compilation Problem
Confusion Question
JVM? Beginning question