Eclipse ADT: Java was started but returned exit code=13

匿名 (未验证) 提交于 2019-12-03 01:10:02

问题:

Could someone one clarify why my Eclipse (http://developer.android.com/sdk/index.html) from ADT won't start?

Every time I'm getting this error:

--------------------------- Eclipse --------------------------- Java was started but returned exit code=13 C:\Program Files (x86)\Java\jre7\bin\javaw.exe -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v22.0.5-757759 -XX:MaxPermSize=256m -jar C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os win32 -ws win32 -arch x86_64 -showsplash -launcher C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\eclipse.exe -name Eclipse --launcher.library C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll -startup C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exitdata bec_34 -product com.android.ide.eclipse.adt.package.product -vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v22.0.5-757759 -XX:MaxPermSize=256m -jar C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar  --------------------------- OK    ---------------------------

回答1:

Error occurs when IDE(eclipse) bit-version (i.e. 32 or 64 bit) and jre bit-version mismatch! I have downloaded the 64 bit version and it showed me the exact error. But 32-bit version worked really fine. JRE version (1.6 or 1.7) doesn't matter. I think you dont need to downgrade. Because in my case, I had Java Version 1.7.0_45, whereas SDK requires 1.6, but it still worked perfectly fine!



回答2:

Remove the following entry from your "path" System Variable- "C:\ProgramData\Oracle\Java\javapath"

Go to Control panel -> System -> Environment variable -> System Variable -> Path (Edit)

then Remove first entry which would be "C:\ProgramData\Oracle\Java\javapath".

Then eclipse will start.



回答3:

"Java was started but returned exit code=13"

error is caused when you are attempting to start Eclipse using the wrong version of the Java Virtual Machine (JVM).

Here are some recommendations to correct this error:

http://www.ehow.com/how_4784069_terminated-exit-code-error-eclipse.html



回答4:

8th version, so reinstall the 6th or 7th version, and check again. It worked for me :)



回答5:

Check that the version being used by Eclipse is same as shown in your error code. If not, call that version explicitly.

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


回答6:

The error is because you have not specified the path to the javaw.exe file which is in jdk.

  1. open eclipse.ini file
  2. after vmargs command(ie below the vmargs command - since they have to be in separate lines) add the following line
    -vm C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe NOTE : that the -vm shud b in one line and the path to the javaw.exe file must be in another line
  3. save the file
  4. run the eclipse.


回答7:

I had this problem after updating my JRE. I downloaded the latest JDK and the problem was fixed. The JRE has to match the JDK for Eclipse to run.



回答8:

On Windows Environment Variables, delete the value of Path variable that contains installed Java location. Then copy the installed Java to your Android-SDK folder.

You

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!