Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError

 
Anuja Navare
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting NoClassDefFoundError whilr running the program. I am able to compile it without an error. I am using jdk 1.2.2 version. I have added the folder where my file is - in the classpath. Also I have jdk1.2.2 foler & jdk1.2.2\jre\lib\rt.jar in the classpath.
can anybody help me??
Thanks vety much!
Anuja
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiling only requires that the path parameter be correct. Your error looks like the classpath is not correct.
What class is not found?
Where does that class currently sit?
What is your classpath?
What directory were you in when you executed the app?
The classes must sit in a directory named in the classpath.
If you put a dot reference in the classpath then the "current" directory (the one that you are sitting in when you call java) will be included.
 
Anuja Navare
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. Thank you very much!
Anuja
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic