eclipse Configuring Eclipse Specifying the JVM


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:

C:/Program Files (x86)/Java/jdk1.7.0_71/bin/javaw.exe