Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
There are two jdk folders in java installation, jdk1.7.0 and jdk1.7.0_10.
when I navigate to higher one in my case jdk1.7.0_10, java works fine.
My path variable is also pointing to jdk1.7.0_10 as shown in below screenshot.
It seems everything is fine but still it shows this error.
Windows directory was the major culprit, I searched java.exe
in C:\Windows
and it was present in Windows directory. It was overshadowing the one in Java’SDK hence causing the problem, deleted it and it fixed the issue!