【问题标题】:Cannot run Eclipse; JVM terminated. Exit code=13 unlike others无法运行 Eclipse; JVM 终止。退出代码=13 不像其他人
【发布时间】:2015-08-12 23:38:57
【问题描述】:

我猜是这样的: Cannot run Eclipse; JVM terminated. Exit code=13 但我不想完全重新安装 Eclipse。

所以,由于我不想重新安装 eclipse,我希望有人可以查看我的错误消息和 eclipse.ini 并给我一些想法。

这是我尝试在我的红帽上运行 eclipse 时弹出的错误消息:

 JVM terminated. Exit code=13
 /usr/bin/java
 -Dosgi.requiredJavaVersion=1.5
 -Dhelp.lucene.tokenizer=standard
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx512m
 -Dorg.eclipse.swt.browser.DefaultType=webkit
 -jar /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
 -os linux
 -ws gtk
 -arch x86_64
 -showsplash /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
 -launcher /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse/eclipse
 -name Eclipse
 --launcher.library /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
 -startup /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
 --launcher.overrideVmargs
 -exitdata 2c0012
 -product org.eclipse.epp.package.jee.product
 -vm /usr/bin/java
 -vmargs
 -Dosgi.requiredJavaVersion=1.5
 -Dhelp.lucene.tokenizer=standard
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx512m
 -Dorg.eclipse.swt.browser.DefaultType=webkit
 -jar /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 

============

这里是eclipse.ini

 --launcher.library
 plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
 -product
 org.eclipse.epp.package.jee.product
 --launcher.defaultAction
 openFile
 -showsplash
 org.eclipse.platform
 --launcher.defaultAction
 openFile
 -startup
 plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
 -vmargs
 -Dosgi.requiredJavaVersion=1.5
 -Dhelp.lucene.tokenizer=standard
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx512m
 -Dorg.eclipse.swt.browser.DefaultType=webkit

【问题讨论】:

  • 你更新你的eclipse了吗?

标签: java android eclipse


【解决方案1】:

不久前我遇到了类似的问题。我最终在 StackOverflow 上的一篇文章中找到了解决方案(当我记得在哪里时会引用)。海报提到了一些与“日食圣三位一体”有关的事情。这是指 Eclipse、JRE/JDK 和 OS 都属于相同的体系结构。所以 32bit/32bit/32bit 或 64bit/64bit/64bit。

【讨论】:

    【解决方案2】:

    退出代码 13 是(总是)由于 Eclipse 和它运行的 JVM 之间的位不匹配;它们必须都是 32 位或 64 位。许多人遇到麻烦,因为他们认为他们在特定的 JVM 中运行 Eclipse,但没有在 eclipse.ini 中正确指定它,因此 Eclipse 选择了不正确的。 阅读eclipse.ini wiki page仔细,了解如何指定要运行 Eclipse 的 JVM(最好是 JDK)的完整路径。我重复一遍:阅读说明完全小心 因为格式很特别。

    或者,您可以使用 Eclipse 安装程序,它会自动在您的机器上找到一个合适的 JVM,或者如果找不到,它会指导您从哪里获得一个。见https://stackoverflow.com/a/31885692/639520

    【讨论】:

    • 我不知道三位一体(原文如此),但是 eclipse neon 32 位在 64 位 Linux Debian 上的 Java 1.8 32 位上运行良好。您所需要的只是 Java 和 Eclipse 具有相同的架构。
    猜你喜欢
    • 2013-12-27
    • 2012-01-04
    • 1970-01-01
    • 1970-01-01
    • 2019-03-03
    • 1970-01-01
    • 2012-03-26
    • 2014-12-31
    相关资源
    最近更新 更多