File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError after windows' "Disk Clean-up Wizard"

 
toya kin
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am a windows user even though i'm not proud of it. One day i used the "Disk Clean-up Wizard"
and then after that i found that when i run my compiled class files it always give me

Exception in Thread "main" java.lang.NoClassDefFoundError: <ClassName>

and i asked my friend and he said that it's probably the windows env variable CLASSPATH or Path is altered, so i changed them both to (added) the JDK bin folder, and i rebooted but i still get the same error message

so if anyone have experienced a same problem or are able to help me i'd really appreciate it
 
Periakaruppan Thiagarajan
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you able to compile and run the same code before disk clean up?
[ December 03, 2005: Message edited by: Periakaruppan Thiagarajan ]
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and i asked my friend and he said that it's probably the windows env variable CLASSPATH or Path is altered, so i changed them both to (added) the JDK bin folder, and i rebooted but i still get the same error message

What directory are your source files in? Normally you don't want to add the JDK bin folder to your CLASSPATH.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic