Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: JVM terminated. Exit code=2

Tags:

I recently decided to start trying Android app development, so I downloaded the Java SE Development Kit 8 (x86) for Windows (I got Windows 8 64bit, but my guide recommends getting the 32bit one), the Android SDK, and the Eclipse IDE for Java Developers (x86).

However, my Eclipse won't launch when I double click eclipse.exe! Instead, I get the following error message: eclipse error

I tried adding Java to my Path variable in my Environment variables as suggested in some of the solutions I looked up, but it still doesn't launch properly.

Anyone know what else I can try? Also, if possible, please do not use super-technical vocabulary as I'm new to these kinds of stuff and will not understand you...thank you haha :D

like image 899
user3362107 Avatar asked Sep 02 '14 01:09

user3362107


1 Answers

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.

like image 187
user4168310 Avatar answered Oct 07 '22 09:10

user4168310