Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Java was started but returned error code=13 [duplicate]

Tags:

java

eclipse

I just updated Java to 1.8 u25, and now I get this message every time I try to open Eclipse

enter image description here

I have no clue what I'm doing wrong, when it comes to Eclipse. I have re-downloaded it number of times but still cannot get it to work. How could I fix this?

This is my eclipse.ini file

-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.standard.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vm C:\Program Files (x86)\Java\jdk1.8.0_25\jre\bin --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.8 -Xms40m -Xmx512m 
like image 882
chif-ii Avatar asked Nov 19 '14 14:11

chif-ii


People also ask

How do I fix Java started but returned exit code 13?

There are two versions of bit version configuration (32bit or 64 bit). If you have installed 64 bit version of java jdk and 32 bit version of eclipse ide or vice versa , then you will get this error. You will get rid of this error by just downloading the correct version of java jdk and eclipse ide.

How do I fix eclipse errors?

The Quick Fix dialog can also be displayed by right clicking on the error item in the Problems view and selecting the Quick Fix menu item.

Where can I find Eclipse INI file?

For windows, it's in the same directory as eclipse.exe file, as shown in below image. You can reach this location by first right clicking on Eclipse app and click on “Show Package Contents” and then in the next window navigate to Contents/Eclipse directory, as shown in below images.


1 Answers

This error occurs because your Eclipse version is 64-bit. You should download and install 64-bit JRE and add the path to it in eclipse.ini. For example:

... --launcher.appendVmargs -vm C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe -vmargs ... 

Note: The -vm parameter should be just before -vmargs and the path should be on a separate line. It should be the full path to the javaw.exe file. Do not enclose the path in double quotes (").

If your Eclipse is 32-bit, install a 32-bit JRE and use the path to its javaw.exe file.

like image 126
Sergey Morozov Avatar answered Oct 19 '22 22:10

Sergey Morozov