原文:http://my.oschina.net/noday/blog/203987
到eclipse目录,打开eclipse.ini文件,在指定位置加入你的jdk相关文件(如下面示例配置中-vm配置,聪明人一看就懂,不懂再问吧)
1 -startup 2 plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar 3 --launcher.library 4 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416 5 -product 6 org.eclipse.epp.package.jee.product 7 --launcher.defaultAction 8 openFile 9 --launcher.XXMaxPermSize10 256M11 -showsplash12 org.eclipse.platform13 --launcher.XXMaxPermSize14 256m15 --launcher.defaultAction16 openFile17 --launcher.appendVmargs18 -vm19 D:/jdk/jdk1.7.0_51/jre/bin/client/jvm.dll20 -vmargs21 -Dosgi.requiredJavaVersion=1.622 -Xms40m23 -Xmx512m
也有如下改法的,但我不喜欢这么改,除了会有eclipse进程外还会启动个java进程
1 -vm 2 C:/jdk7/bin/javaw.exe