All hell broke loose after i uninstalled my java 6 and installed java 7 (both jdk and jre). On opening eclipse it gave the error that "No JVM found at.....". So, i explicitly gave the location of javaw.exe as
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
in the eclipse.ini file. Now it says "Java was started but returned exit code 13".
Also, in the elispse.ini file i changed
-Dosgi.requiredJavaVersion=1.5
to
-Dosgi.requiredJavaVersion=1.7
There are many solutions online like :
but none of them works. Any insight?
解决方案
if you have updated your jdk to 7 you are most likely to face this problem.
This happens mainly due to:
incompatible sdk and jdk versions
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