chif-ii chif-ii - 1 year ago 127
Java Question

Eclipse: Java was started but returned error code=13

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

C:\Program Files (x86)\Java\jdk1.8.0_25\jre\bin

Answer Source

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:

C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download