java已启动但返回退出代码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20604471/
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
提问by Hamad
when i was starting eclipse, i first got this error dialog:
当我开始 eclipse 时,我首先收到了这个错误对话框:
After this error,i researched and found a solution here.
出现此错误后,我在这里研究并找到了解决方案。
this solution asked me to give this line in eclipse.ini:
这个解决方案要求我在 eclipse.ini 中给出这一行:
-vm
C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe
but after adding this, i found another kind of error dialog:
但是在添加这个之后,我发现了另一种错误对话框:
after this error,i researched alot, and found these solutionssol1,sol2after following these, error is not resolved. does anyone know why i am facing this problem.
在这个错误之后,我研究了很多,发现这些解决方案sol1,sol2在遵循这些之后,错误没有解决。有谁知道我为什么面临这个问题。
note: i know this is kind of duplicate question, but all those duplicate question are not resolved yet, so do not mark this as duplicate!
注意:我知道这是一个重复的问题,但所有这些重复的问题还没有解决,所以不要将其标记为重复!
采纳答案by nitind
You're trying to run a 64-bit Eclipse with a 32-bit Java Runtime. They have to match.
您正在尝试使用 32 位 Java 运行时运行 64 位 Eclipse。他们必须匹配。
回答by Ravi Parsania
first of all remove line in eclipse.ini:
首先删除 eclipse.ini 中的行:
-vm
C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe
then
然后
right click::my computer
右键单击::我的电脑
select: properties
选择:属性
click on : advanced system setting
点击:高级系统设置
click on: environments variable
点击:环境变量
select: path
选择:路径
click: edit
点击:编辑
copy on : your java(jdk) path eg.[C:\Program Files\Java\jdk1.7.0\bin]
复制:你的 java(jdk) 路径 eg.[C:\Program Files\Java\jdk1.7.0\bin]
paste on edit user variable dialog box: eg. [;C:\Program Files\Java\jdk1.7.0\bin.;]
粘贴在编辑用户变量对话框上:例如。[;C:\Program Files\Java\jdk1.7.0\bin.;]
ok/apply
好的/申请
then start ur eclipse and enjoy..........
然后开始你的日食并享受......
回答by DCS
If you have recently updated your java then please uninstall that update. It worked in my case. Hope it will help.
如果您最近更新了 Java,请卸载该更新。它在我的情况下有效。希望它会有所帮助。