eclipse启动提示javaw.exe in your current PATH、No java virtual machine
另外,也可修改eclipse.ini 文件,在最前面加上下面两行内容:
-vm
D:/java/jdk1.6.0_10/bin/javaw.exe
*********************************************************************
-vm
C:/Program Files/Java/jdk1.8.0_161/bin //这里是反斜杠 /
-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.v20161213-1756
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m