1.下载Eclipse Oxygen版本(省略如何下载)
2.配置eclipse.ini,使用Java 9 JRE启动,所有配置参数如下:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-1133
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
E:/Java/jdk-9/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
3.进入Eclipse Marketplace,安装 java 9 support for oxygen 4.7
4.Window->Preferences->Java->Install JREs,设置JDK 9的路径地址