,

Running Multiple Eclipse with different versions of JDK

October 14, 2014

To load different versions of eclipse with different JDKs follow the below instructions.

1. create a shortcut command calling the eclipse.

C:\jabahan\Luna_eclipse\eclipse\eclipse.exe -vm C:\Progra~1\Java\jdk1.6.0_43\bin\javaw.exe

2. add the following args in the eclipse.ini

-vm
C:\Progra~1\Java\jdk1.6.0_43\bin\javaw.exe

Note:

You may get an error saying “Failed to create JVM”, to fix this, make sure the -vm arg is declared before the -vmargs.

e.g.

-vm
C:\Progra~1\Java\jdk1.6.0_43\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

 

Have your say