Home > Java > javaTutorial > Eclipse Exit Code 13: Is My Java and Eclipse Bitness Compatible?

Eclipse Exit Code 13: Is My Java and Eclipse Bitness Compatible?

DDD
Release: 2024-12-26 15:14:14
Original
409 people have browsed it

Eclipse Exit Code 13: Is My Java and Eclipse Bitness Compatible?

Troubleshooting Eclipse Startup with Exit Code 13: 32-bit/64-bit Compatibility

Upon encountering an error message indicating "Java was started but returned exit code=13" while attempting to launch Eclipse, it is essential to verify the bitness compatibility between Eclipse and the underlying Java Virtual Machine (JVM). The presence of "Program Files (x86)" in the mentioned shortcut target suggests a conflict between a 32-bit Java installation and a 64-bit Eclipse version.

Identifying Your Eclipse and Java Versions:

  • Eclipse: The path specified in the shortcut target, "Eclipse-SDK-4.2-win32-x86_64," indicates a 64-bit version.
  • Java: However, the path to the specified JVM, "C:Program Files (x86)Javajre7binjavaw.exe," suggests a 32-bit installation of Java.

Resolving the Conflict:

The recommended solution is to explicitly specify the path to the desired 64-bit JVM in the Eclipse installation's "eclipse.ini" file. Refer to the Eclipse wiki page for detailed instructions.

Alternatively, you could download and install the 32-bit version of Eclipse, ensuring it aligns with the 32-bit Java installation. Nevertheless, specifying the JVM path in "eclipse.ini" remains a best practice to prevent future conflicts due to potential changes in the system PATH.

Verifying Java Version:

To confirm your Java version, run the following command in a command prompt:

java -version
Copy after login

For a 64-bit Java version, you will observe a line indicating "Java HotSpot(TM) 64-Bit Server VM."

Additional Notes:

If you possess a 64-bit machine, it is advisable to install the 64-bit JDK and remove the 32-bit version. For Windows 10, access the "Apps" section in Settings and locate Java. Here, you can view the installed Java versions and choose which ones to uninstall.

The above is the detailed content of Eclipse Exit Code 13: Is My Java and Eclipse Bitness Compatible?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template