Error trying to run Eclipse: Java was Started but Return Exit code =13

Asked

Viewed 70,450 times

20

After having the hard drive changed, I downloaded and went to try to run the eclipse and it returned the error:

Java was started but return exit code =13

inserir a descrição da imagem aqui

  • What is causing this error?

2 answers

23


First, check if the JDK is installed.

Once installed, check if the variable PATH was configured. For that reason,

  1. Right click on My Computer and go to properties;
  2. Click Advanced System Settings;
  3. Click on Environment Variables;
  4. Locate the variable PATH in the 'System Variables' table. Click on it and then on the 'edit' button;
  5. Add the path where JDK was installed. Ex.: C:\Program Files\Java\jdk1.7.0_71\bin
  6. Give OK on all previous open screens and try to open Eclipse;
  • I have a similar problem, but in case my environment variable is right, pointing p to a java 1.6, I deleted some references of java 1.7 that they had on the machine, but I did not use, and now the eclipse no longer opens

18

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 this will be solved.

Execute the command java -version in the prompt command.

  • 1

    I did not understand the negative vote, despite a brief answer, it describes a possible situation that may cause the problem, although the author’s problem may not be of others. + 1

  • Yes, I also did not understand, I had this problem and I decided by fixing the Java vs Eclipse versions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.