Java 已启动但返回退出代码 13
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20513356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java was started but returned exit code 13
提问by user3089824
Both eclipse and jdk are 64 bit.
eclipse 和 jdk 都是 64 位的。
Environment variables:
环境变量:
classpath: C:\Program Files\Java\jdk1.7.0_45\jre\lib
path: C:\Program Files\Java\jdk1.7.0_45\jre\bin
I added the these lines to my eclipse.ini file:
我将这些行添加到我的 eclipse.ini 文件中:
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
My java version details:
我的java版本详细信息:
C:\Users\Owner>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
My eclipse.ini file: I have edited the required version from 1.5 to 1.7
我的 eclipse.ini 文件:我已将所需的版本从 1.5 编辑到 1.7
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
The Error Details:
错误详情:
Java was started but returned exit code=13
C:\Program Files\Java\jre7\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar
C:\ECLIPSE\ECLIPSE\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-os win32
-ws win32
-arch x86
-showsplash
-launcher C:\ECLIPSE\ECLIPSE\eclipse.exe
-name Eclipse
--launcher.library
C:\ECLIPSE\ECLIPSE\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.
v20120502\eclipse_1406.dll
-startup
C:\ECLIPSE\ECLIPSE\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata 19b4_60
-product org.eclipse.epp.package.java.product
-vm C:\Program Files\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar
C:\ECLIPSE\ECLIPSE\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
Please help. I have tried re-installing everything twice. Nothing has helped.
请帮忙。我试过重新安装所有东西两次。没有任何帮助。
回答by user3807936
and it seems like the eclipse.ini file has been manupilated before you have a 32 bit jvm, but your requirements are that of a 64 bit use the x86 java.exe n check if it works by that i mean use the ProgramFilesx86 path
在您拥有 32 位 jvm 之前,似乎 eclipse.ini 文件已经被操纵,但是您的要求是 64 位使用 x86 java.exe n 检查它是否有效,我的意思是使用 ProgramFilesx86 路径