简体   繁体   English

Eclipse“ Java已启动,但返回退出代码= 13

[英]Eclipse "Java was started but returned exit code=13

在此处输入图片说明

I got the following problem when i installed the latest version of java(8), everything was ok before please help! 安装最新版本的java(8)时出现以下问题,一切正常,请帮助!

your latest version of java is 32 bit or 64 bit? 您最新的Java版本是32位还是64位? It should be the same as your JDK, ECLIPSE and OS are. 它应该与您的JDK,ECLIPSE和OS相同。 ALL should be same 32 bit or 64 bit. ALL应该是相同的32位或64位。

更改Eclipse的路径,将“ Eclipse”文件夹放在C:\\ Program Files(x86)或C:\\ Program Files

通过编辑环境变量PATH修复,只需在分号之前删除第一行即可,例如C:/ ProgramData / Oracle ...,然后添加64位Java变量

I had the same issue. 我遇到过同样的问题。 Mine got resolved by pointing the Java version to its 64 bit version. 我的解决方案是将Java版本指向其64位版本。 Like many pointed out here your Eclipse, Java, and the OS should of the same bit architecture. 就像这里所指出的,您的Eclipse,Java和OS应该具有相同的位架构。 You can start Eclipse either using command prompt (in Windows) by giving command like C:\\eclipse>eclipse.exe -vm "C:\\Program Files\\Java\\jre7\\bin\\javaw.exe" or by double clicking on the exe file. 您可以使用命令提示符(在Windows中)通过提供诸如C:\\ eclipse> eclipse.exe -vm“ C:\\ Program Files \\ Java \\ jre7 \\ bin \\ javaw.exe”之类的命令来启动Eclipse。文件。 For the second option, you need to change the eclipse.ini file by giving the vm path using the -vm option so that it won't take the default Java version for your computer. 对于第二个选项,您需要通过使用-vm选项提供vm路径来更改eclipse.ini文件,以便它不会采用计算机的默认Java版本。 I placed mine just before the -vmargs option. 我将我的放置在-vmargs选项之前。 See my setup below: 请参阅下面的设置:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm 
C:\Program Files\Java\jre7\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

I got mine to work by installing the 32 bit java along side the 64 bit java version. 我通过在32位Java版本旁边安装32位Java来工作。 Should work the same if you need the reverse. 如果需要相反的功能,则应相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM