Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple java versions installed and java was started but returned exit code=13

Tags:

java

eclipse

I am not able to start eclipse on Windows 7. It was working fine yesterday. Here is the screenshot of error when I start eclipse:

Eclipse error when I start eclipse

Java versions from CMD

java and javac versions

Why it gives different versions for java and javac?

My java home is set to Jdk 7 as below:

JAVA_HOME = C:\Program Files\Java\jdk1.7.0_60

Note: I have jdk 8 installed on my machine but I have not set jdk 8 path.

This question has been asked couple of times but I am not able to resolve it on my machine so please do not mark it as duplicate.

like image 310
Nitesh Virani Avatar asked Aug 07 '15 09:08

Nitesh Virani


2 Answers

In the environment variables check your path whether it is starts with C:\ProgramData\Oracle\Java\javapath

if yes then please remove it and try again

like image 171
Sasikumar Murugesan Avatar answered Sep 22 '22 18:09

Sasikumar Murugesan


More than likely you've installed JDK 1.70_60 prior to installing JRE 1.8.0_51.

This would mean that your compiler javac is found within the JDK distribution (Java Development Kit) and your java runtime is found within the more recently downloaded JRE (Java Runtime Environment). JRE does not contain the javac (Java compiler).

like image 38
insidesin Avatar answered Sep 21 '22 18:09

insidesin