- Open eclipse config file
eclipse.ini
in your Eclipse folder. -
Add
-vm yourPath\Java\jre6\bin\javaw.exe
like:-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -vm C:\Java\jre6\bin\javaw.exe ...
If the path contains spaces there is no need to escape them, see the Eclipse Wiki for more specs. The -vm
option and the path must be on separate lines. The -vm
option must come before the -vmargs
option. On Linux, the path would typically be /bin/java
instead of the Windows path shown above. You must use the Java and Eclipse versions must match (i.e. 32-bit Eclipse runs on 32-bit Java and 64-bit Eclipse runs on 64-bit Java).