无法启动 Eclipse - Java 已启动但返回退出代码 = 13 [英] Can't start Eclipse - Java was started but returned exit code=13

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

问题描述

我正在尝试使用 Eclipse 第一次体验 Android 开发.我在尝试运行 Eclipse 时遇到了这个问题,几分钟前才安装了 4.2 版.

I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago.

在第一次尝试启动 Eclipse 后,没有任何参数来指定 Java VM,我收到一条错误消息,说 在 Eclipse 文件夹中找不到名为 javaw.exe 的 Java VM,所以我找到了 Java 的安装位置,并将该位置指定为快捷方式目标中的参数.现在我得到一个不同的错误,Java 已启动但返回退出代码=13.

After first trying to start Eclipse without any parameters to specify the Java VM, I got an error message saying it couldn't find a Java VM called javaw.exe inside the Eclipse folder, so I found where Java was installed and specified that location as the parameter in the shortcut's target. Now I get a different error, Java was started but returned exit code=13.

类似的问题似乎表明这是 32 位/64 位冲突,但我 99% 肯定我下载了 Eclipse 和 Java (RE 7u5) 的 64 位版本,我选择它是因为我有 64 位 Windows 7.

Similar questions seem to indicate that it's a 32-bit/64-bit conflict, but I'm 99% positive that I downloaded 64-bit versions of both Eclipse and Java (RE 7u5), which I chose because I have 64-bit Windows 7.

  • 如果有人知道如何确认我的 Eclipse 和 Java 是 64 位的,不胜感激.
  • 如果您认为我的问题不同,请帮忙!
  • 请尽可能简单明了,因为我对 Eclipse 完全陌生和 Java.

快捷目标:"C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipseeclipse.exe" -vm "C:Program Files (x86)Javajre7injavaw.exe"

Shortcut Target: "C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipseeclipse.exe" -vm "C:Program Files (x86)Javajre7injavaw.exe"

完整的错误代码...:

Java was started but returned exit code=13
C:Program Files (x86)Javajre7injavaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipse\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipse\pluginsorg.eclipse.platform_4.2.0.v201206081400splash.bmp
-launcher C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipseeclipse.exe
-name Eclipse
--launcher.library C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v201205221813eclipse_1503.dll
-startup C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipse\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 1e30_5c
-vm C:Program Files (x86)Javajre7injavaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:Program FilesEclipse-SDK-4.2-win32-x86_64eclipse\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar

推荐答案

有 OS、JDK 和 Eclipse bitness 的工作组合.就我而言,我在 64 位操作系统上使用 64 位 JDK 和 32 位 Eclipse.将 JDK 降级到 32 位后,Eclipse 开始工作.

There are working combinations of OS, JDK and Eclipse bitness. In my case, I was using a 64-bit JDK with a 32-bit Eclipse on a 64-bit OS. After downgrading the JDK to 32-bit, Eclipse started working.

使用以下组合之一.

  • 32 位操作系统、32 位 JDK、32 位 Eclipse(仅限 32 位)
  • 64 位操作系统、32 位 JDK、32 位 Eclipse
  • 64 位操作系统、64 位 JDK、64 位 Eclipse(仅限 64 位)

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

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