Home > Java > javaTutorial > Why Does Eclipse Fail to Start with Exit Code 13?

Why Does Eclipse Fail to Start with Exit Code 13?

Susan Sarandon
Release: 2024-12-22 20:02:11
Original
305 people have browsed it

Why Does Eclipse Fail to Start with Exit Code 13?

Eclipse Unable to Start: Exit Code 13

Problem Description:

Attempted installation of Eclipse for Android development encounters an error upon launch, with the message "Java was started but returned exit code=13."

Analysis:

The provided log indicates that Eclipse is attempting to use a 32-bit version of Java (located in "Program Files (x86)") while Eclipse itself is 64-bit.

Solution:

Confirm Eclipse and Java Versions:

  1. Check the Eclipse version path:

    • The mentioned path "Eclipse-SDK-4.2-win32-x86_64" indicates a 64-bit version.
  2. Check the Java version:

    • Open a command prompt and run "java -version."
    • The third line of the output should indicate "64-Bit Server VM" or "64-Bit Client VM" for a 64-bit version.

Resolving the Conflict:

  1. Specify Explicit Java Path in eclipse.ini:

    • Open the eclipse.ini file located in the Eclipse installation directory.
    • Add the "-vm" option with the path to your 64-bit Java executable (e.g., "-vm C:Program FilesJavajre7binjavaw.exe").
  2. Use 32-bit Eclipse:

    • If you have a 32-bit Java installation, you can alternatively download and use the 32-bit version of Eclipse.

Additional Recommendations:

  1. Uninstall Unused Java Versions:

    • Remove any unnecessary 32-bit Java versions to avoid confusion in the system path.
  2. Specify Java Path in eclipse.ini:

    • Specifying the Java path in eclipse.ini is recommended to prevent path changes from affecting Eclipse's functionality.

The above is the detailed content of Why Does Eclipse Fail to Start with Exit Code 13?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template