Cannot run Eclipse; JVM terminated. Exit code=13

2018-12-31 00:19发布

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

30条回答
无与为乐者.
2楼-- · 2018-12-31 00:57

For Eclipse:

Added this two lines in eclipse.ini

Second line represents the JDK location of the javaw.exe file.

-vm

C:\Program Files\Java\jdk1.7.0_60\bin\javaw.exe

Note: place -vm lines before -vmargs, otherwise default location is taken.

For STS

Change the same as above in STS.ini

查看更多
一个人的天荒地老
3楼-- · 2018-12-31 00:58

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
查看更多
春风洒进眼中
4楼-- · 2018-12-31 00:58

I fixed it reinstalling the jdk. In my case it was necessary to do:

java -version
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
javac -version

taken from Install Java JDK+JRE (oracle) in Kubuntu 13.04 from apt

查看更多
伤终究还是伤i
5楼-- · 2018-12-31 00:59

I had the same issue with eclipse in my both machine. I had jre 32 bit installed. So I removed 32 bit and installed 64 bit instead and it worked perfectly.

查看更多
时光乱了年华
6楼-- · 2018-12-31 01:00

Make sure the Eclipse and the Java that you are using are both either 32-bit or 64-bit.

You cannot run 64-bit eclipse with 32-bit JRE.

java -version

Java HotSpot(TM) 64-Bit Server VM

The 32 bit version JRE will not have 64-Bit in it.

查看更多
高级女魔头
7楼-- · 2018-12-31 01:01

I had the same issue on Ubuntu, and solved it by unpack all *.pack files in jdk directory. for example: cd /usr/java/jdk1.7.0_03/jre/lib sudo ../bin/unpack200 rt.pack rt.jar

查看更多
登录 后发表回答