Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java/lang/NoClassDefFoundError: java/lang/Object

843811Dec 16 2003 — edited Jul 11 2009
strange thing.

I was Java running 1.4.2_02 on Mandrake 9.0 without problems and then suddenly following error appeared:
count = 4364, total = 9381
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
and since that. I can't run Java and get the same error everytime I try to run it.

I tried seting new environment variable CLASSPATH to <java_dir> and <java_dir>/src.zip and adding <java_dir> to PATH (which at the moment contains only <java_dir>/bin/), but it didn't help (still the same error.)

I searched forums to see if there was any solution, and even though isssue of similar error appeared couple times, I didn't find any usable explanation+solution.

P.S. general notice: It would be very helpful, if Java messages were less cryptic and more informative (maybe providing some suggestion how to fix the problem). I think it would solve a lot of issues (on this forum as well) that were caused only by undesipherable message given by Java.

Michal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2009
Added on Dec 16 2003
31 comments
19,011 views