Original: http://my.oschina.net/noday/blog/203987
To the Eclipse directory, open the Eclipse.ini file and add your JDK-related files in the specified location (as in the example configuration in the following-VM configuration, the smart one can see, do not know to ask again)
1-Startup2plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440. Jar3--launcher.library4plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-04165-Product6Org.eclipse.epp. Package. Jee.product7--launcher.defaultaction8 OpenFile9--launcher. XxmaxpermsizeTen 256M One-Showsplash A Org.eclipse.platform ---launcher. Xxmaxpermsize - 256m the--launcher.defaultaction - OpenFile ---Launcher.appendvmargs --VMS +d:/jdk/jdk1.7.0_51/jre/bin/client/Jvm.dll --Vmargs +-dosgi.requiredjavaversion=1.6 A-xms40m at-xmx512m
There are also the following changes, but I do not like this change, in addition to the eclipse process will also start a Java process
1 -2 C:/jdk7/bin/javaw.exe
ECLIPSE specifies which JDK to launch