Kees van Voorthuizen
Kees van Voorthuizen

Reputation: 147

Java.exe: Error occurred during initialization of VM

Each time I try to launch java.exe, in this case java.exe -version, I get this output:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Here is a screenshot of my problem:

enter image description here

I searched on Google for a solution but nothing works...

Upvotes: 3

Views: 31295

Answers (3)

S.Roshanth
S.Roshanth

Reputation: 1507

Make sure your installed java bin directory contains rt.jar

Upvotes: 0

vinuales
vinuales

Reputation: 31

Just Delete java.exe in c:/programdata/oracle/java/javapath_target_xxxxxx/

Upvotes: 1

Joe Kampf
Joe Kampf

Reputation: 339

Make sure your JAVA_HOME environment variable is set to fully qualified path of the directory that contains bin/java.exe

Upvotes: 2

Related Questions