eclipse won't start - no java virtual machine was found

Two ways to work around this .

  • Recommended way : In your eclipse.ini file make sure you are pointing -vm to your jdk installation. More on this here. Make sure to add -vm before the -vmargs section.

  • Pass in the vm flag from command line. http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM

Note : Eclipse DOES NOT consult the JAVA_HOME environment variable.


Make sure both the Java version and Eclipse are belongs to same architecture.So install 64 bit java for 64 bit eclipse.


eclipse.ini:

--launcher.defaultAction  
--launcher.XXMaxPermSize  
256M  
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize<br/>
256m  
--launcher.defaultAction  
openFile  
-showsplash  
org.eclipse.platform
-vm
C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll<br/>
--launcher.XXMaxPermSize  
256m  
--launcher.defaultAction  
openFile  
-vmargs  
-Dosgi.requiredJavaVersion=1.7  

That worked for me. It doesnt have to be on the beginning, but surely it cant be at the end of the file.

Tags:

Java

Eclipse