在 Linux 中启动 Eclipse 时出错:“JVM 终止.退出代码=13" [英] Error starting Eclipse in Linux: "JVM terminated. Exit code=13"

查看:23
本文介绍了在 Linux 中启动 Eclipse 时出错:“JVM 终止.退出代码=13"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 eclipse 并遇到错误.我使用 Kubuntu 作为我的操作系统,当我在终端中输入 java -version 时,我得到了java 版本1.6.0_23"".我已经安装了 openJDK,但我不确定下一步该怎么做.有什么想法吗?谢谢.

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.

错误:

   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 

我的eclipse.ini

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

推荐答案

查看错误中的路径,您似乎没有使用 ubuntu 存储库中的 eclipse(这很好 imo).

Looking at the paths in the error it seems that you are not using eclipse from the ubuntu repositories (that's fine imo).

  1. 检查 jvm 是 64 位还是 32 位.java -version 会告诉你.如果您发现这是 64 位 jvm,请返回 eclipse.org 并下载 64 位 的 eclipse 版本.您有 32 位 jvm 的 eclipse.查看您的错误消息 -arch x86

  1. 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

尝试使用 -vm 参数从 shell 启动 eclipse.在 ubuntu 上,您可以在 /var/lib/jvm/ 下找到已安装的 jre/jdk.例如:

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

您可以将此参数添加到 eclipse.ini 文件中.

You could add this parameter to your eclipse.ini file.

有帮助吗?

这也可能很有趣:JVM 的 Eclipse 启动错误终止.升级 Ubuntu 更新后退出代码=13

这篇关于在 Linux 中启动 Eclipse 时出错:“JVM 终止.退出代码=13"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆