Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why NoClassDefFound?

 
scottie zman
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
darrrrr
I forgot the classpath.....
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hehe
I know how you feel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic