gpt4 book ai didi

java升级后Eclipse(Mars)无法启动

转载 作者:行者123 更新时间:2023-12-03 16:55:01 26 4
gpt4 key购买 nike

当我开始 eclipse 时,我收到此错误。 -vm 参数包含 java.exe 的路径,在 java 升级后,这在我的系统中是不可能的。我该如何纠正?
Java 已启动但返回退出代码=13
C:/ProgramData/Oracle/java/javapath/java.exe ....
我的系统中不存在此路径

Eclipse.INI 内容是

 -startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

最佳答案

osgi.requiredJavaVersion=1.6

此行指定使用 Java 6。如果您升级了 JAVA,则应更新此字段。

https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM

关于java升级后Eclipse(Mars)无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26399997/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com