File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError

 
vivi santa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1479
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On a windows system, on the command line type "set classpath=C:\whateverfolderFileisIn"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic