简体   繁体   English

在启动eclipse时,它会出现错误“Java已启动但​​返回退出代码= 13”

[英]On starting eclipse, it gives an error “Java was started but returned exit code=13”

I am trying to start eclipse after installing java 7 and adding the line 我试图在安装java 7并添加该行后启动eclipse

-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe

to the eclipse.ini file. 到eclipse.ini文件。 Still i am getting the error "Java was started but returned exit code=13". 我仍然收到错误“Java已启动但​​返回退出代码= 13”。 在此输入图像描述

I just want to know how to start eclipse. 我只是想知道如何开始日食。 Even if i have to install eclipse, java, jre all over again. 即使我必须再次安装eclipse,java,jre。 Any suggestion will do! 任何建议都可以!

My eclipse.ini file: 我的eclipse.ini文件:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

On pasting the jre in eclipse folder i am getting this error: 在eclipse文件夹中粘贴jre时出现此错误:

在此输入图像描述

All you have to do is to put the new jdk path in eclipse.ini 您所要做的就是将新的jdk路径放在eclipse.ini中

-vm -vm
C:\\Program Files\\Java\\jdk1.8.0_11\\bin\\javaw.exe C:\\ Program Files \\ Java \\ jdk1.8.0_11 \\ bin \\ javaw.exe
or the your new jdk path. 或者你的新jdk路径。
make sure that you type the above just before the -vmargs and after the OpenFile 确保在-vmargs之前和OpenFile之后键入上面的内容

that solved my problem 这解决了我的问题

Check that you have installed the correct java that your OS requires. 检查您是否安装了操作系统所需的正确java。 Meaning, if you are running a 64 bit OS then you need 64 bit java and the same for 32 bit. 这意味着,如果您运行的是64位操作系统,则需要64位java,而32位则相同。

Check eclipse.ini file, and in particular format of the vm option (look here for more): 检查eclipse.ini文件,特别是vm选项的格式( 在这里查看更多):

Note the format of the -vm option - it is important to be exact: 请注意-vm选项的格式 - 确切地说很重要:

  • The -vm option and its value (the path) must be on separate lines. -vm选项及其值(路径)必须位于不同的行上。
  • The value must be the full absolute or relative path to the Java executable, not just to the Java home directory. 该值必须是Java可执行文件的完整绝对路径或相对路径,而不仅仅是Java主目录。
  • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM. -vm选项必须在-vmargs选项之前发生,因为-vmargs之后的所有内容都直接传递给JVM。

Another thing to check is that bit version (32/64) of JVM should match bit version of eclipse (32/64). 要检查的另一件事是JVM的位版本(32/64)应该匹配eclipse的位版本(32/64)。

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

相关问题 Eclipse“ Java已启动,但返回退出代码= 13 - Eclipse "Java was started but returned exit code=13 Eclipse-Java已启动,但返回退出代码= 13 - Eclipse - Java was started but returned exit code=13 Eclipse错误 - Java已启动但​​返回退出代码= 13 - Eclipse Error - Java was started but returned exit code=13 Eclipse 错误:“Java 已启动但返回退出代码 = 13” - Eclipse Error: “Java started but returned exit code = 13” Eclipse Helios提供错误消息Java已启动但​​返回了退出代码-805306369 - Eclipse Helios gives error Java was started but returned exit code -805306369 在运行Eclipse时:Java由返回的退出代码= 13启动 - When running Eclipse: java was started by returned exit code=13 Eclipse ADT:Java已启动但​​返回退出代码= 13 - Eclipse ADT: Java was started but returned exit code=13 无法启动 Eclipse - Java 已启动但返回退出代码 = 13 - Can't start Eclipse - Java was started but returned exit code=13 启动接收到的Java,但在64位计算机上启动STS时返回退出代码= 13错误 - Received Java was started but returned exit code=13 error when starting STS on 64-bit machine 为Android开发运行eclipse时出错-“ Java已启动,但返回了退出代码13” - Error in running eclipse for android development- “Java was started but returned exit code 13”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM