linux eclipse开发环境配置

前景描述:

我在linux上下载安装了eclipse,运行后,报错,JVMterminated.Exitcode=13,如上图。

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

直到后来,终于发现了原因。

原来我是32位linux上下载安装了64位的eclipse。....郁闷坏了.....

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

FixforEclipseError:JVMterminated.Exitcode=13

RSS

WhenrunningJBossDeveloperStudio4(whichisbasedonEclipse)Igottheerrormessageshownatthebottomofthispost.ItturnsoutthiswasduetothefactthatIwastryingtoruna64bitversionofEclipsewitha32bitversionofJava.

YoucantesttoseeifyourversionofJavais64bitbyrunningthefollowingcommand:

java-d64-version

Ifyouhavea32bitversionofJavayouwillseethefollowingresponse:

Runninga64-bitJVMisnotsupportedonthisplatform.

Ifyouarerunninga64bitversionofJavayouwillseesomethinglikethisresponseinstead:

javaversion"1.6.0_23"

Java(TM)SERuntimeEnvironment(build1.6.0_23-b05)

JavaHotSpot(TM)64-BitServerVM(build19.0-b09,mixedmode)

ThesolutionistorunEclipsewiththevmargument,pointingtoa64bitversionofJava,likeso:

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

HereisthefullerrormessageIgotwhenrunning64bitEclipsewith32bitJava:

JVMterminated.Exitcode=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:[email protected]/workspace-XX:MaxPermSize=256m-jar/home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar-oslinux-wsgtk-archx86_64-showsplash-launcher/home/matthew/redhat/apps/jbdevstudio400GA_x64/studio/jbdevstudio-nameJbdevstudio--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-exitdata75bb001d-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:[email protected]/workspace-XX:MaxPermSize=256m-jar/home/matthew/redhat/apps/jbdevstudio400GA_x64/studio//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.ja

Readmore:http://www.brighthub.com/hubfolio/matthew-casperson/blog/archive/2011/02/27/fix-for-eclipse-error-jvm-terminated-exit-code-13.aspx#ixzz1OlAsFyJb

相关推荐