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!

Error occurred during initialization of VM

843811Feb 5 2004 — edited Mar 8 2005
All,

I experienced a problem related to VM, after I reinstalled on Windows XP Java 2 SDK, Standard Edition Version 1.4.2_03. Whenever I enter, e.g., �java HelloWorldApp�, I will get the following message:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

However I can successfully do compiling, e.g., �javac HelloWorld.java�. Further, if I run java with full path: �C:\ j2dsk1.4.2_03\bin\java HelloWorldApp�, it is successful.

I checked the PATH variable, and it does include the path C:\ j2dsk1.4.2_03\bin. I have no clue about what caused the problem.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2005
Added on Feb 5 2004
4 comments
260 views