[英]Eclipse Error - Java was started but returned exit code=13
After trying to figure out the "No Java JDK/JRE installed" issue and editing the .ini file to indicate what Java JRE to start with, I get this error, and it is very frustrating. 在尝试找出“未安装Java JDK / JRE”问题并编辑.ini文件以指示Java JRE开始时,我收到此错误,这非常令人沮丧。 I must have done something in the .ini file to make this happen. 我必须在.ini文件中做过一些事情来实现这一点。 I tried a few different things to fix this, but it has become quite stressful as I haven't been able to get anything done today, so any help will be appreciated. 我尝试了一些不同的东西来解决这个问题,但由于我今天无法完成任何工作,因此它已经变得非常紧张,所以任何帮助都将受到赞赏。
I read that this is a conflict between 32 and 64 bit Java and Eclipse, however I am 99% sure they are both 64 bit. 我读到这是32位和64位Java和Eclipse之间的冲突,但我99%肯定它们都是64位。 2nd Question is there anyway I can double check I have both 64 bit versions? 第二个问题是反正我可以仔细检查我有两个64位版本?
The problem is that you are trying to start a 64 bit version of Eclipse with a 32 bit version of Java. 问题是您正在尝试使用32位版本的Java启动64位版本的Eclipse。 You can download it from here 你可以从这里下载
Start Eclipse with a 64 bit JVM and the problem will go away. 使用64位JVM启动Eclipse,问题就会消失。
To do so: 为此:
eclipse.exe -vm c:\path\to\64\bit\bin\javaw.exe
You can also update the the first two lines in your eclipse.ini file to use the 64 bit java by default by doing the following: 您还可以通过执行以下操作更新eclipse.ini文件中的前两行,以默认使用64位java:
-vm
c:\path\to\64\bit\bin\javaw.exe
Also, you can also download a 32 bit version of Eclipse for use with 32 bit Java. 此外,您还可以下载32位版本的Eclipse以与32位Java一起使用。 The key is that the bitness is the same. 关键是比特是一样的。
I had the same problem. 我有同样的问题。 i was using windows7 with 64 bit OS. 我使用的是带有64位操作系统的windows7。 I just insert this two line in first line of eclipse.ini file like, 我只是在eclipse.ini文件的第一行插入这两行,比如
-vm
C:\\Program Files (x86)\\Java\\jre7\\bin\\javaw.exe (This is path for your javaw.exe) C:\\ Program Files(x86)\\ Java \\ jre7 \\ bin \\ javaw.exe(这是javaw.exe的路径)
JDK8不支持Java HotSpot(TM)客户端VM只需卸载JDK8即可
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.