多个eclipse启动分别使用不同JDK的方法

来源:互联网 发布:遁世不见知而不悔 举例 编辑:程序博客网 时间:2024/06/06 04:50

修改eclipse.ini文件,红色标注的部分加上就行

C:\Java\jdk1.8.0_05\bin\java

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm  
C:\Java\jdk1.8.0_05\bin

-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
原创粉丝点击