Eclipse JRE or JDK missing

The variable JAVA_HOME is not required by Eclipse. If your Java installation does not put the Java executables in the PATH, you should add those manually.

A faster way to have your Eclipse up and running consists in modifying the eclipse.ini and using the -vm option.

http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example


I had the same problem. For me, I needed the JDK. So I had to install the JDK. It should match the build platform that is, 64bit vs. 32bit windows. After that, I removed, the -vm line from the eclipse.ini file (the suggested fix). It was giving me the "Can't create virtual machine" error. The current release of JDK is version, 7 whereas the Android Developers Toolkit version of eclipse is currently based on JDK 6. But it seems to work. Eclipse came up and is functional. Haven't actually written a program yet.


Go to eclipse folder (where eclipse is installed) and open eclipse.ini file in your editor and add the following code after openFile tag.

-vm C:\Program Files\JDK6\bin\javaw.exe

That's all.

Tags:

Java

Eclipse