日期:2014-05-16  浏览次数:20661 次

linux eclipse开发环境配置


前景描述:
我在linux上下载安装了eclipse,运行后,报错,JVM terminated. Exit code=13,如上图。

查错查了大半天,以为是jdk太高了,或者是jre非独立jre,而是jdk中jre.....等等,一直未果。

直到后来,终于发现了原因。
原来我是32位linux上下载安装了64位的eclipse。....郁闷坏了.....

后来,下了个32位的eclipse,直接就可以运行了,欲哭无泪啊...


Fix for Eclipse Error: JVM terminated. Exit code=13
RSS

When running JBoss Developer Studio 4 (which is based on Eclipse) I got the error message shown at the bottom of this post. It turns out this was due to the fact that I was trying to run a 64 bit version of Eclipse with a 32 bit version of Java.

You can test to see if your version of Java is 64 bit by running the following command:

java -d64 -version

If you have a 32 bit version of Java you will see the following response:

Running a 64-bit JVM is not supported on this platform.

If you are running a 64 bit version of Java you will see something like this response instead:

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

The solution is to run Eclipse with the vm argument, pointing to a 64 bit version of Java, like so:

./eclipse -vm /usr/java/jdk1.6.0_23/bin

Here is the full error message I got when running 64 bit Eclipse with 32 bit Java:

JVM terminated. Exit code=13/usr/java/jdk1.6.0_24/bin/java-Xms512m-Xmx1024m-Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1:start-Dosgi.instance.area.default=@user.home/workspace-XX:MaxPermSize=256m-jar /home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar-os linux-ws gtk-arch x86_64-showsplash-launcher /home/matthew/redhat/apps/jbdevstudio400GA_x64/studio/jbdevstudio-name Jbdevstudio--launcher.library /home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1.R36x_v20100810/eclipse_1309.so-startup /home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar-exitdata 75bb001d-vm /usr/java/jdk1.6.0_24/bin/java-vmargs-Xms512m-Xmx1024m-Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1:start-Dosgi.instance.area.default=@user.home/workspace-XX:MaxPermSize=256m-jar /home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.ja

Read more: http://www.brighthub.com/hubfolio/matthew-casperson/blog/archive/2011/02/27/fix-for-eclipse-error-jvm-terminated-exit-code-13.aspx#ixzz1OlAsFyJb
1 楼 hualikejava 2011-08-18  
我的刚好跟你的相反,我的是jdk 64位的安装了eclipse32 所以也会出现这情况。
2 楼 tiger121987 2011-10-26  
我的也是哦。我的是jdk 64位的安装了eclipse32 所以也会出现这情况。 有没有哪位同仁 知道怎么解决的? 求教。。。。
3 楼 syc001 2011-10-27  
tiger121987 写道
我的也是哦。我的是jdk 64位的安装了eclipse32 所以也会出现这情况。 有没有哪位同仁 知道怎么解决的? 求教。。。。

下载噶配套版本的eclipse