在Linux中启动Eclipse时出错:“JVM终止。退出代码= 13“ [英] Error starting Eclipse in Linux: "JVM terminated. Exit code=13"
问题描述
java -version
时,我得到了java version1.6.0_23'。我已经安装了openJDK,但我不知道下一步该怎么办有什么想法吗?谢谢。 错误:
JVM终止。退出代码= 13
/ usr / bin / java
-Dosgi.requiredJavaVersion = 1.5
-XX:MaxPermSize = 256m
-Xms40m
-Xmx384m
-jar /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os linux
-ws gtk
-arch x86
-showsplash
- 启动器/ home / lucky /下载/ eclipse / eclipse
-name Eclipse
--launcher.library / home / lucky / Downloads / eclipse // plugins / org。 cn
-exitdata 5cf8058
-product org.eclipse.epp.package.php.product
-vm / usr / bin / java
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-XX:MaxPermSize = 256m
-Xms40m
-Xmx384m
-jar /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1。 1.1.R 36x_v20101122_1400.jar
我的eclipse.ini
-startup
plugins / org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins / org.eclipse。等价的。 $ b -showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-XX:MaxPermSize = 256m
-Xms40m
-Xmx384m
查看错误中的路径,似乎您没有使用ubuntu存储库中的eclipse(这很好,imo)。
-
检查jvm是64位还是32位。
java -version
会告诉你。如果你发现这是一个64位的jvm,那么请回到eclipse.org并下载一个eclipse版本的64位。你有一个32位jvm的eclipse。看到你的错误信息,它说-arch x86
-
尝试从shell启动eclipse
-vm
参数。在ubuntu上,您可以在/ var / lib / jvm /
下找到已安装的jre / jdk。例如:
./ eclipse -vm / var / lib / jvm / sun-java6 -jdk / bin
您可以将此参数添加到eclipse.ini文件中。
帮助?
这也可能是有意义的: JVM终止的Eclipse启动错误。升级Ubuntu更新后退出代码= 13
I am trying to run eclipse and encounter the errors. I am using Kubuntu as my OS and when I typed java -version
in terminal I got 'java version "1.6.0_23"'. I have openJDK installed but I am not sure what can I do next. Any thoughts? Thanks.
ERROR:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os linux
-ws gtk
-arch x86
-showsplash
- launcher /home/lucky/Downloads/eclipse/eclipse
-name Eclipse
--launcher.library /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345/eclipse_1310.so
-startup /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-exitdata 5cf8058
-product org.eclipse.epp.package.php.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/lucky/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
My eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
Looking at the paths in the error it seems that you are not using eclipse from the ubuntu repositories (that's fine imo).
Check if the jvm is 64 or 32 bit.
java -version
will tell you. If you find this is a 64-bit jvm then go back to eclipse.org and download a eclipse version for 64-bit. You have eclipse for a 32-bit jvm. See your error message where it says-arch x86
Try to start eclipse from a shell using the
-vm
parameter. On ubuntu you can find the installed jre/jdk's under/var/lib/jvm/
. E.g.:
./eclipse -vm /var/lib/jvm/sun-java6-jdk/bin
You could add this parameter to your eclipse.ini file.
Helps?
This could be of interest as well: Eclipse starting error of JVM terminated. Exit code=13 after upgrading Ubuntu updates
这篇关于在Linux中启动Eclipse时出错:“JVM终止。退出代码= 13“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!