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

问题描述

我试图让使用Eclipse Android开发我的第一次品尝。我跑进试图运行Eclipse的时候这个问题,仅有分钟前安装的版本4.2。

在第一次尝试启动Eclipse不带任何参数来指定Java虚拟机,我得到了一个错误信息说,它无法找到一个Java虚拟机名为javaw.exe的Eclipse文件夹里面,所以我发现那里的Java已安装并指定该位置作为快捷方式的目标的参数。现在,我得到一个不同的错误,Java是开始,但返回的退出code = 13。

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

  • 如果有人知道如何确认我的Eclipse和Java是64位,这会是AP preciated。
  • 如果您觉得我的问题是不同的,请大家帮忙!
  • 请讲的明明白白,你可以,因为我是全新的Eclipse和Java。

快捷方式目标:C:\ Program Files文件\的Eclipse-SDK-4.2-win32的-x86_64的\日食\的eclipse.exe-vmC:\ Program Files文件(x86)的\的Java \ jre7 \ BIN \ javaw.exe的

完全错误code:

 的Java已启动,但返回的退出code = 13
C:\ Program Files文件(x86)的\的Java \ jre7 \ BIN \ javaw.exe的
-Xms40m
-Xmx512m
-XX:MaxPermSize =256米
-jar C:\ PROGRAM Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
-os的win32
-ws的win32
-arch x86_64的
-showsplash C:\ PROGRAM Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins\org.eclipse.platform_4.2.0.v201206081400\splash.bmp
-launcher C:\ Program Files文件\的Eclipse-SDK-4.2-win32的-x86_64的\日食\的eclipse.exe
-name的Eclipse
--launcher.library C:\ PROGRAM Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v201205221813\eclipse_1503.dll
-startup C:\ PROGRAM Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 1e30_5c
-vm C:\ Program Files文件(x86)的\的Java \ jre7 \ BIN \ javaw.exe的
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize =256米
-jar C:\ PROGRAM Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
 

解决方案

您的Eclipse版本看起来不错,根据文件名。

要检查你的Java版本,运行

  Java的版本

在一个控制台(命令提示符)。在Windows 7 64位Java 6我得到:

  Java版本1.6.0_27
  的Java(TM)SE运行时环境(建设1.6.0_27-B07)
  Java的热点(TM)64位服务器虚拟机(建设20.2  -  B06,混合模式)

请注意的第三线,这表明,这是一个64位版本。

在一个32位版本,你会得到这样的:

  Java的热点(TM)客户端虚拟机(建设20.1-B02,混合模式,共享)

检查,这是正在使用的Eclipse版本,如在错误code。如果不是,显式调用该版本,通过在控制台(命令提示符)运行以下命令:

  C:\ Program Files文件(x86)的\的Java \ jre7 \ BIN \ java.exe的-version

(使用正确的路径的java.exe 所示的错误消息,在我上面的例子不一定所示的路径!)

如果事实证明,64位Eclipse正在尝试使用32位Java,那么确切的解决方案将取决于您的系统和安装,但可能会涉及到的一些组合:

  • 编辑PATH系统变量指向所需的64位Java JDK
  • 卸载Java JDK / JRE的32位版本(S)(如果不需要作其他用途)
  • 在下载和安装了最新的64位版本的Java JDK的

一些其他的答案解释这些方针的一些具体的解决方案。

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.

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".

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.

  • If anyone knows how to confirm that my Eclipse and Java are 64-bit,that'd be appreciated.
  • If you think my problem is a different one, please help!
  • Please speak as plainly as you can, as I am totally new to Eclipseand Java.

Shortcut Target: "C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe" -vm "C:\Program Files (x86)\Java\jre7\bin\javaw.exe"

Full error code:

Java was started but returned exit code=13
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins\org.eclipse.platform_4.2.0.v201206081400\splash.bmp
-launcher C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v201205221813\eclipse_1503.dll
-startup C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 1e30_5c
-vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
解决方案

Your version of Eclipse looks OK, based on the filename.

To check your version of Java, run

  java -version

in a console (command prompt). On Windows 7 with 64-bit Java 6 I get:

  java version "1.6.0_27"
  Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
  Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

Note the 3rd line, which shows that this is a 64-bit version.

On a 32-bit version you'll get something like:

  Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

Check that this is the version being used by Eclipse, as shown in your error code. If not, call that version explicitly, by running the following command in a console (command prompt):

  "C:\Program Files (x86)\Java\jre7\bin\java.exe" -version

(using the correct path to java.exe as shown in your error message, not necessarily the path shown in my example above!)

If it turns out that 64-bit Eclipse is trying to use a 32-bit Java, then the exact solution will depend on your system and setup, but will probably involve some combination of:

  • editing the PATH system variable to point to the desired 64-bit Java JDK
  • uninstalling 32-bit version(s) of Java JDK/JRE (if not required for other purposes)
  • downloading and installing an up-to-date 64-bit version of Java JDK

Several of the other answers explain some specific solutions along these lines.

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

09-03 17:04