Two Laptop Bag
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why NoClassDefFound?" Watch "why NoClassDefFound?" New topic

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...
public class Test {
public static void main(String[] args){

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

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

Joined: Jul 10, 2001
Posts: 234
I know how you feel.
jQuery in Action, 3rd edition
subject: why NoClassDefFound?
It's not a secret anymore!