Eclipse: JVM terminated. Exit code=2

I had the same issue and was trying to install different versions of JDK: 1.6, 1.7, 1.8.

It didn’t help much.

The problem was resolved when I changed PATH variable by removing

C:\ProgramData\Oracle\Java\javapath;

In command prompt I also ran following commands:

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set PATH=C:\Program Files\Java\jdk1.8.0_25\bin;%PATH%

But I think the most important was to remove C:\ProgramData\Oracle\Java\javapath; from the PATH.

Leave a Comment