Monday, May 11, 2015

Eclipse can't start can't find Java or “Java was started but returned exit code 13”

general if you have java_home environment variable setup, and installed the latest java, 
you do not need do any change on eclipse.ini.

No need to add -vm c:\....java\bin, just leave eclipse.ini file alone. 

Here is my environment variable:

computer > properties > advanced system settings > environment variable

add:

JAVA_HOME    C:\Program Files\Java\jdk1.8.0_05
PATH   C:\Program Files\Java\jdk1.8.0_05;
=====================================

This happens mainly due to:
  1. incompatible sdk and jdk versions
  2. using a 32 bit java version for your 64 bit eclipse JVM (programfilex86-java)
WHAT YOU HAVE TO DO : firstly check the eclipse.ini file to see if you have a path that is pointing to your jdk it should look something like this
-vm    
C:\Program Files\Java\blah\blah\blah\javaw.exe    
if not then locate the jdk 7 javaw.exe file
sample :
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe 
paste -vm and the path below it into your eclipse.ini file
-vm  
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe        
make sure that you type the above just before the -vmargs and after the OpenFile

No comments: