java - Pointing eclipse to JRE 1.7 instead of 1.6 -


i getting error whenever click eclipse icon version 1.6 of jvm not suitable product. version 1.7 or greater required.

my other java applications in system using jre 1.6 dont want change that.

i have jdk 7 in system how can point eclipse jdk 1.7 instead of default 1.6.

thanks

you have several options.

since want default java 1.6 of other applications, i'd suggest modifying eclipse.ini:

https://wiki.eclipse.org/eclipse.ini

example:

-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 -product org.eclipse.epp.package.java.product --launcher.defaultaction openfile --launcher.xxmaxpermsize 256m -showsplash org.eclipse.platform --launcher.xxmaxpermsize 256m --launcher.defaultaction openfile -vm c:\java\jdk\1.8\bin\javaw.exe -vmargs -dosgi.requiredjavaversion=1.5 -xms40m -xmx1024m 

Comments