aspose file tools*
The moose likes Beginning Java and the fly likes why NoClassDefFound? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why NoClassDefFound?" Watch "why NoClassDefFound?" New topic
Author

why NoClassDefFound?

scottie zman
Ranch Hand

Joined: Aug 08, 2001
Posts: 40
Strange. I downloaded the java mail API, installed it and the proper jars on a unix box, and am trying to run some of the demos. the demo java files all compiled correctly, but when I try to run them I get the
exception in thread main NoClassDefFound error.
So I even made a hello world program...
import java.io.*;
public class Test {
public static void main(String[] args){
System.out.println("hello");
}
}

... and still get the same results. Any ideas why??
thanks
Zman
scottie zman
Ranch Hand

Joined: Aug 08, 2001
Posts: 40
darrrrr
I forgot the classpath.....
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
hehe
I know how you feel.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why NoClassDefFound?