Java Eclipse崩溃,错误JVM终止。退出代码=11

Java Eclipse崩溃,错误JVM终止。退出代码=11,java,eclipse,ubuntu,openjdk,Java,Eclipse,Ubuntu,Openjdk,在抛出以下错误消息后,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

在抛出以下错误消息后,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
workspace/.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)
我也尝试过OpenJDK,但同样的问题也发生了


是否有任何解决方案或解决方法可以避免此崩溃?

从评论中可以看出eclipse安装存在一些问题:

从下面下载最新的64位eclipse表单:

如果在此之后您仍然面临相同的问题:

  • 打开eclipse安装文件夹中的
    eclipse.ini
    文件
  • 从中,在-vmargs之前添加以下内容

    -vm
    \您的jre路径\bin\javaw.exe


  • 查看Eclipse日志文件

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

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

    我强烈建议您通过ppa安装webup8team的java。它将选择正确的jdk/jre,以此类推:

  • sudo添加apt存储库ppa:webupd8team/java
  • sudoapt获得更新
  • sudo apt get install oracle-java8-installer
  • sudo apt get安装oracle-java8-set-default

  • 我希望在此之后问题会得到解决

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

    -虚拟机
    默认eclipse-inst.ini的GTK部分中的“到您的jvm的路径”

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


    这不是错误消息。这是您的启动配置(通常通过eclipse可执行文件附近的ini文件设置)。您应该在eclipse可执行文件附近或当前工作目录中找到一个JVM转储文件。可能您只安装了JRE而不是JDK。
    /usr/bin/javac-version
    的输出是什么?您的jre是32位还是64位?您必须使用32位jvm运行32位eclipse,使用64位jvm运行64位eclipsejvm@SubOptimalJDK不是运行eclipse所必需的,JRE就足够了。@次优输出是:javac1.8.0\u 72eclipse.ini文件中没有-vm参数。我在问题中添加了eclipse.ini。如何对答案进行否决?如果您查看问题的历史记录,您将看到2016-01-29 16:32:26.126的
    workspace/.metadata/.log的输出添加到我的答案之后。建议查看日志文件,检查是否有其他信息是正确的。不是吗?
    
    Eclipse Installer
    -data
    @noDefault
    --launcher.GTK_version
    3