【问题标题】:Eclipse crash with error JVM terminated. Exit code=11Eclipse 崩溃并出现错误 JVM 已终止。退出代码=11
【发布时间】:2017-10-16 15:21:16
【问题描述】:

Eclipse 在 Ubuntu 14.04 上在抛出以下错误消息后崩溃。

JVM terminated. Exit code=11
/usr/bin/java
-Xms128m
-Xmx2048m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=1024m
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist/eclipse_1503.so
-startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.overrideVmargs
-exitdata ea0009
-vm /usr/bin/java
-vmargs
-Xms128m
-Xmx2048m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=1024m
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar 

Eclipse 版本:3.8.1

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Xms128m
-Xmx1024m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins

工作区/.metadata/.log

!SESSION 2016-01-29 16:32:26.126 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_72
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.ui 2 2 2016-01-29 16:37:51.223
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
!SESSION 2016-01-29 16:39:42.541 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_72
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.core.resources 2 10035 2016-01-29 16:39:44.621
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui 2 2 2016-01-29 16:42:30.180
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)

我正在使用 oracle java 版本“1.8.0_72”,如下所示。

java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

我也尝试过打开 jdk 并出现同样的问题。

任何解决方案或解决方法可以避免这种崩溃?

【问题讨论】:

  • 这不是错误信息。这是您的启动配置(通常通过 eclipse 可执行文件附近的 ini 文件设置)。您应该在 Eclipse 可执行文件附近或当前工作目录中找到 JVM 转储文件。
  • 也许您只安装了 JRE 而不是 JDK。 /usr/bin/javac -version 的输出是什么?
  • 您的 jre 是 32 位还是 64 位?你必须用 32bit jvm 运行 32bit eclipse,用 64bit jvm 运行 64bit eclipse
  • @SubOptimal JDK不是必须运行eclipse,JRE就够了。
  • @SubOptimal 输出为:javac 1.8.0_72

标签: java eclipse ubuntu openjdk


【解决方案1】:

来自默认的 eclipse-inst.ini 的 GTK 部分

Eclipse Installer
-data
@noDefault
--launcher.GTK_version
2

Eclipse Installer
-data
@noDefault
--launcher.GTK_version
3

【讨论】:

    【解决方案2】:

    从 cmets 看来 eclipse 安装有些问题:

    在下方下载最新的 64bit eclipse 表单:ECLIPSE DOWNLOADS

    如果之后你仍然面临同样的问题:

    1. 从 eclipse 安装文件夹中打开 eclipse.ini 文件。
    2. 来自Specifying the JVM,在-vmargs之前添加以下内容

      -vm
      \your-jre-path\bin\javaw.exe

    【讨论】:

      【解决方案3】:

      不要依赖 Ubuntu 提供的任何 Eclipse 打包和版本,通常建议下载 Eclipse directly from the source。在eclipse.ini 文件as described in the wiki 中指定JVM 的完整路径也是一个好主意。

      【讨论】:

        【解决方案4】:

        我强烈建议你通过 ppa 安装 webup8team 的 java。它会选择正确的 jdk/jre 等等:

        1. sudo add-apt-repository ppa:webupd8team/java
        2. sudo apt-get 更新
        3. sudo apt-get install oracle-java8-installer
        4. sudo apt-get install oracle-java8-set-default

        希望以后问题能解决

        【讨论】:

          【解决方案5】:

          在 eclipse.ini 文件中添加 jdk 版本,

          -vm “path_to_your_jvm”

          【讨论】:

            【解决方案6】:

            查看 Eclipse 日志文件

            ${location of the workspace}/.metadata/.log
            

            【讨论】:

            • eclipse.ini 文件中没有-vm 参数。我添加了有问题的 eclipse.ini。
            • 如何否决了答案?如果您查看问题的历史记录,您将看到在我的回答之后添加了 workspace/.metadata/.log from 2016-01-29 16:32:26.126 的输出。并且建议查看日志文件以检查是否有一些附加信息是没有错的。不是吗?
            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2019-03-03
            • 2012-03-26
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2012-01-04
            相关资源
            最近更新 更多