5

When I am starting the eclipse I am getting this error. -vm argument contains the path of the java.exe which is not their in my system possible after a java upgrade. How Can I correct this? Java was started but returned exit code=13 C:/ProgramData/Oracle/java/javapath/java.exe.... This path does not exist in my system

Eclipse.INI contents are

 -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
4

2 回答 2

3
osgi.requiredJavaVersion=1.6

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

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

于 2014-10-16T11:16:08.103 回答
0

我的 JVM 似乎是 32 位的,而 Eclipse 肯定是 64 位的,这可能就是它所引用的早期位置必须有 64 位 Java,它在整个升级过程中某处被卸载。我想我只会下载 Eclipse Mars 的 32 位版本,这样就可以解决问题。——</p>

于 2014-10-17T12:50:20.860 回答