Search This Blog

Tuesday 21 June 2016

How to start eclipse with different version of Java?

After Installing required JRE if you require to upgrade Eclipse version then kindly follow following step to upgrade eclipse java version:

You can add the -vm option to eclipse.ini:
-vm
c:/<path>/java/<javaName>/bin/javaw.exe
path : directory where Java is installed
javaName:Name of JDK/JRE installed.
 After updating eclipse.ini file, eclipse.ini file may look like this :
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m