To have Eclipse use a particular Java VM :
Edit the eclipse.ini file and add the vm argument below the line org.eclipse.platform
-vm /absolute/path/to/your/java/executable
I’ve found this particularly useful on Windows when I’ve installed and removed various versions of JDK and eclipse appears completely lost and confused.
To have Eclipse use a particular Java VM
February 10, 2009 by bearrider