Starting Eclipse results in Failed to create Java Virtual Machine

1.Open folder with Eclipse.exe and find eclipse.ini file

2.Replace -vmargs by your current real path of javaw.exe:

-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”

3.save .ini file and open eclipse. It will work.. happy coding.


When I click eclipsec.exe then eclipse starts. What is the difference between eclipse.exe and eclipsec.exe?

from eclipse wiki

You can start Eclipse by running eclipse.exe on Windows or eclipse on other platforms. This small launcher essentially finds and loads the JVM. On Windows, the eclipsec.exe console executable can be used for improved command line behavior.

meaning the eclipse.exe find the JVM for you and starts Eclipse IDE , Where as the eclipsec.exe is console exe where you can tweak how eclipse starts

What will be impact if I use eclipsec.exe to start eclipse. It give command prompt also.

No impact as such, eclipsec.exe is for windows only


Open eclipse.ini file and Change the vmargs sizes to

-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

It works on my system.