Eclipse启动报错:A Java Runtime Environment(JRE) or Java Development Kit(JDK) must be available in order.

完蛋的玩意
找eclipse配置文件eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vm					   //
C:\Program Files\Java\jdk1.8.0_161\bin     //加上这两行就好了
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

加上
-vm
C:\Program Files\Java\jdk1.8.0_161\bin
就可以启动了

猜你喜欢

转载自blog.csdn.net/xiha_zhu/article/details/84641731