Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot run Eclipse; JVM terminated. Exit code=13

enter image description here

I just append -vm C:\Program Files\Java\jre6\bin\javaw.exe

in eclipse.ini then I try to start eclipse again and got this error. Give me how to solve or link that actually solve it.

this is my eclipse.ini

-startup  plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar  --launcher.library  plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810  -showsplash  org.eclipse.platform --launcher.XXMaxPermSize 256m  --launcher.defaultAction  openFile  -vm  C:\Program Files\Java\jre6\bin\javaw.exe -vmargs  -Xms40m  -Xmx384m 

Thank you

like image 297
Prince OfThief Avatar asked Feb 09 '11 13:02

Prince OfThief


People also ask

How do I fix exit code 13 in eclipse?

This error occurs because your Eclipse version is 64-bit. You should download and install 64-bit JRE and add the path to it in eclipse.

How do I fix java exit code 13?

If you have installed 64 bit version of java jdk and 32 bit version of eclipse ide or vice versa , then you will get this error. You will get rid of this error by just downloading the correct version of java jdk and eclipse ide.


2 Answers

I had the same error when configuring eclipse.ini to use JRE6. Turns out I caused this error by incorrectly configuring eclipse to use the 64 bit JVM while running a 32 bit version of eclipse 3.7.

The correct configuration required the eclipse.ini -vm argumument to use "C:/Program Files (x86)/" instead of "C:/Program Files/".

Make sure that the JVM version (32/64 bit) you use matches the eclipse version (32/64 bit).

like image 122
jmagder Avatar answered Sep 21 '22 06:09

jmagder


It may just be the way the error shows (and not how it is written in the eclipse.ini file), but there is text in Eclipse.ini (Specifying the JVM) that says the following:

  • The -vm option and its value (the path) must be on separate lines.
  • The value must be the full absolute path to the Java executable, not just to the Java home directory.
  • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM
like image 43
mecsco Avatar answered Sep 18 '22 06:09

mecsco