eclipse 指定启动使用的jdk

作者:不要哭啦

发布时间:2016-09-05T13:35:37

到eclipse目录,打开eclipse.ini文件,在指定位置加入你的jdk相关文件

加入

-vm
D:\Develop\Tool\Java\jdk1.8.0_101\jre\bin\server/jvm.dll

完整配置文件

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
D:\Develop\Tool\Java\jdk1.8.0_101\jre\bin\server/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m