Error trying to run Eclipse: Java was started but return exit code = 13

15

After having HD changed, I downloaded and tried to run the eclipse and it returned the error:

Java was started but return exit code =13

  • What is causing this error?
asked by anonymous 05.11.2014 / 00:11

2 answers

19

First, make sure JDK is installed.

Once installed, verify that the PATH variable has been set. To do this,

  • Right-click My Computer and go to Properties;
  • Click Advanced System Settings;
  • Click Environment Variables;
  • Locate the PATH variable in the 'System Variables' box. Click on it and then on the 'edit' button;
  • Add the path where the JDK was installed. Ex: C:\Program Files\Java\jdk1.7.0_71\bin
  • Give OK on all previous open screens and try opening Eclipse;
  • 05.11.2014 / 00:11
    12

    This is because you downloaded a 32-bit version of Eclipse and tried to run it with a 64-bit version of Java, and vice versa. Just download the version corresponding to your JDK and it will be solved.

    Run the command java -version at the prompt command.

        
    07.06.2015 / 04:56