• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls help me, so basic question!

 
long sun
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed jdk1.2.2 in Windows2000,it can compile ,but when i run,it gave me an error "Exception in thread "main" java.lang.NoClassDefFoundError:ClassName",i've already try a lot of programms,but the result is the same,i am very confusing,i can not
find the reason ,i'm anscious to hear for someone to help me,thanks!
 
huiying li
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check your classpath to include the current directory
CLASSPATH=.;
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We answered this in Beginner.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic