eclipse Configuring Eclipse Specifying the JVM


Example

A common issue that users of Eclipse encounter is related to the default system JVM.

A typical situation is a 64 bit Windows which has both 32 and 64 bit versions of Java installed, and a 32 bit Eclipse. If the 64 bit version of Java is the system default, when Eclipse is launched an error dialog is shown.

Specifying the JVM explicitly in eclipse.ini will resolve this. The -vm entry should be added directly above the -vmargs section.

The example below shows how to use a 32 bit JVM on a 64 bit Windows:

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
...
-vm
C:/Program Files (x86)/Java/jdk1.7.0_71/bin/javaw.exe
-vmargs
-Xms256m
-Xmx1024m