Explain Codes LogoExplain Codes Logo

Can't start Eclipse - Java was started but returned exit code=13

java
eclipse-configuration
jvm-configuration
java-versions
Nikita BarsukovbyNikita Barsukov·Jan 31, 2025
TLDR
Match Eclipse to Java's **architecture** (32/64-bit):
**32-bit Java** -> **32-bit Eclipse**
**64-bit Java** -> **64-bit Eclipse**

To check your **Windows architecture**:
1. Press `Win + Pause|Break`.
2. Look for `System type`.

To configure Eclipse's **Java version**, edit `eclipse.ini`:

-vm /path/to/jdk/bin/javaw.exe // the JVM hero our Eclipse song needs

Ensure `-vm` is **above** `-vmargs`. // important for the hierarchy

Configure JVM in eclipse.ini file

Eclipse code=13 issues typically stem from incorrect path references in eclipse.ini.

To fix the issue:

  • Define the JVM location with the -vm parameter, followed by the path to javaw.exe (Ensure it's above -vmargs). // "I belong on top." - -vm
  • Make sure the javaw.exe is not misplaced in the Eclipse directory. // It's like playing hide-and-seek.
  • Keep your JDK updated to the latest version. // A friendly neighborhood updater.

System Environment Alignment

Running 32-bit applications on a 64-bit system without proper configuration may result in compatibility issues.

To align your system:

  • Ensure there are no conflicting paths in the environment variable PATH. // Keeping the paths clear, "cruising down the highway.”
  • Use all 64-bit versions: OS, Java, and Eclipse on a 64-bit system. // Homogeneity is key.
  • After adjusting the bitness, fine-tune Eclipse's memory settings for optimal performance. // Setting up the stage for Eclipse to perform.

Advanced Troubleshooting Techniques

Once you're aligned with the right version of Eclipse, JVM, and system architecture, a few advanced tactics can offer tremendous help:

Verify java version

Run java -version on the command prompt to check the JVM bit version. // "Make sure we're all on the same page."

Path adjustments

Ensure that 64-bit versions avoid the Program Files (x86) directory. While manual JVM path specification might strengthen Eclipse's stability. // "Walk on the dedicated path."

Embrace the fallback

If the 64-bit version of Eclipse gives trouble, falling back to the 32-bit version can save the day. // "Back to basics."

Always remember to refer to the Eclipse wiki for detailed instructions on Eclipse.ini configuration.