How to Fix a "JVM terminated. Exit code=13" Error in Eclipse

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

If you are trying to start Eclipse, but are continually getting a "JVM terminated. Exit code=13" error" then you need to fix the error. Here's how.

Step 1

First, realize that this error is caused when you are attempting to start Eclipse using the wrong version of the Java Virtual Machine (JVM). So you need to realize what JVM you are starting with.

Advertisement

Video of the Day

Step 2

If you are using Linux, you can type "which java" on the command line. Otherwise, you can type "java -version". This will give you the Java version.

Step 3

Now, you need to research the correct JVM for the version of Eclipse that you are using. For example, if you are using Eclipse Europa, it may require the 1.5 JVM to start. When you initially get the error message, you may see something that says "requiredJavaVersion=1.5", which will tell you what version of the JVM is required.

Advertisement

Step 4

Make sure that you have the correct version of Java installed.

Advertisement

Step 5

Now, you can either change the Java version environment variable or you can tell Eclipse to use a different version of the virtual machine upon startup. To do this you use the "vm" flag.

Advertisement

For example: ./eclipse -vm /home/seed/app/jre1.5.0_10/bin

Step 6

Now that you have changed the version of the Java Virtual Machine that you are using to start Eclipse, the error should be resolved. Good luck!

Advertisement

Advertisement

Video of the Day