打开eclipse报错a java Runtime Evironment(JRE) or java Development Kit must be available in order to run Eclipse.no java virtual machine was found after searching the following locations:\F:\program File\java\jdk-14.0.1\bin
jdk已经安装,环境变量已经配置好了,报这个错,找到eclipse的安装目录;有一个eclise.ini的配置文件,
-startup
plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
C:/Users/Administrator/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-product
org.eclipse.epp.package.java.product
-showsplash
C:\Users\Administrator\.p2\pool\plugins\org.eclipse.epp.package.common_4.15.0.20200313-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
\F:\Program Files\\Java\jdk-14.0.1\bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
里面-vm是Java运行环境,填一个正确的jdk的安装路径F:\Program Files\Java\jdk-14.0.1\bin。