Eclipse返回错误消息“Java已启动但​​返回退出代码= 1” [英] Eclipse returns error message "Java was started but returned exit code = 1"

查看:398
本文介绍了Eclipse返回错误消息“Java已启动但​​返回退出代码= 1”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚刚下载并取消了Android SDK for Windows。我正在使用W8 64x。

解决方案

错误信息指出您的Java版本有问题。您是否安装了JDK?



尝试添加以下内容(注意新行):

 $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ > 

...到您的 eclipse.ini 文件,指向要使用的JDK,并检查所需的Java版本至少与JDK一样新。这是Windows系统的路径。 here (向下滚动)可以找到更多路径。



编辑:确保 -vm 选项发生在 -vmargs 命令 -vmargs 之后的所有内容都将直接传递到JVM。



如果您不知道 eclipse.ini 文件是:定期在你的 eclipse.exe 的文件夹中。



Edit2: @KadoLakatt :安装最新的Java版本为您工作的原因是因为Eclipse检查如果没有找到 -vm 条目(参见 here )。但是我不建议这样做,因为你可能会错误地猜测JVM的使用。如果您更新Java(自动?),您可能会遇到问题,您的Eclipse想知道您可能已经改变了什么。更好地将它设置为您的 eclipse.ini 中的特定文件夹。


I just downloaded and dearchived android SDK for Windows. I`m currently using W8 64x.

解决方案

The error message points to a problem with your Java version. Do you have a JDK installed?

Try adding the following (noting the new line):

-vm 
c:/wherever/java/jdk1.6.0_21/jre/bin/server/jvm.dll

...to your eclipse.ini file, pointing to the JDK you want to use, and check that the required Java version is at least as new as your JDK. This is the path for a Windows system. More on paths can be found here (scroll down).

Edit: make sure, that the -vm option occurs before the -vmargs command. Everything after -vmargs is passed directly to the JVM.

If you don't know where the eclipse.ini file is: regularly it is in the folder of your eclipse.exe.

Edit2: @KadoLakatt: the reason why installing the latest Java Version worked for you is because Eclipse checks the standard path for a JVM if it doesn't find a -vm entry (see here). However I'd not recommend that, since you might be wrong guessing the JVM used. If you update Java (automatically?) you might run into problems in your Eclipse wondering what you might have changed. Better set it to a specific folder in your eclipse.ini to be certain.

这篇关于Eclipse返回错误消息“Java已启动但​​返回退出代码= 1”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆