Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Error - Java was started but returned exit code=13

enter image description here

After trying to figure out the "No Java JDK/JRE installed" issue and editing the .ini file to indicate what Java JRE to start with, I get this error, and it is very frustrating. I must have done something in the .ini file to make this happen. I tried a few different things to fix this, but it has become quite stressful as I haven't been able to get anything done today, so any help will be appreciated.

I read that this is a conflict between 32 and 64 bit Java and Eclipse, however I am 99% sure they are both 64 bit. 2nd Question is there anyway I can double check I have both 64 bit versions?

like image 345
someoneinsane Avatar asked Jan 21 '14 18:01

someoneinsane


People also ask

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

The most likely cause of this Eclipse-environment-based error is that there are unsupported characters in one of the installation folders. To resolve this error, change the name of the installation folder so that it does not include unsupported characters, which are :%#<>"!+ .

How do I fix exit code 13 in eclipse?

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.

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.


2 Answers

The problem is that you are trying to start a 64 bit version of Eclipse with a 32 bit version of Java. You can download it from here

Start Eclipse with a 64 bit JVM and the problem will go away.

To do so:

eclipse.exe -vm c:\path\to\64\bit\bin\javaw.exe

You can also update the the first two lines in your eclipse.ini file to use the 64 bit java by default by doing the following:

-vm
c:\path\to\64\bit\bin\javaw.exe

Also, you can also download a 32 bit version of Eclipse for use with 32 bit Java. The key is that the bitness is the same.

like image 69
Mahmoud Avatar answered Oct 05 '22 13:10

Mahmoud


I had the same problem. i was using windows7 with 64 bit OS. I just insert this two line in first line of eclipse.ini file like,

-vm

C:\Program Files (x86)\Java\jre7\bin\javaw.exe (This is path for your javaw.exe)

like image 35
Towhidul Islam Tuhin Avatar answered Oct 05 '22 13:10

Towhidul Islam Tuhin