Eclipse 未启动:JVM 已终止。退出代码=14

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14186198/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:45:32  来源:igfitidea点击:

Eclipse doesn't start : JVM terminated. Exit code=14

javaeclipsejvmopenjdkjvm-crash

提问by ThinkingMonkey

Tried searching for a fix couldn't find one! I am running fedora 17 with :

试图寻找修复找不到一个!我正在运行 Fedora 17:

Eclipse(juno) version

Eclipse(juno) 版本

eclipse-platform.x86_64                   1:4.2.1-2.fc17 

A which javayields

Awhich java收益

/usr/bin/java

so eclipse is using the right one.

所以 eclipse 使用的是正确的。

A java -versionyields

Ajava -version收益


java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.3.2.fc17-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

the Eclipse/Installationpage says : A Java 6 JRE/JDK is recommended for Eclipse 4.2.
Do i need to downgrade?

Eclipse中/安装页说: 一个Java JRE 6 / JDK推荐的Eclipse 4.2。
我需要降级吗?



I have seen this question :

我见过这个问题:

JVM terminates with exit code 14 when trying to launch Eclipse

尝试启动 Eclipse 时,JVM 以退出代码 14 终止

But my configuration seems to be right.

但我的配置似乎是正确的。



Any ideas?

有任何想法吗?

Contents of eclipse.ini(path /etc/eclipse.ini) :

目录eclipse.ini(路径/etc/eclipse.ini):

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

-Dorg.eclipse.swt.browser.UseWebKitGTK=true -Dhelp.lucene.tokenizer=standard -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith -XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding, -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding -XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile -XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/FileTypesPreferencesPage,getDottedValidSourceFiles

这是完整的错误消息
JVM terminated. Exit code=14
/usr/bin/java
-Xms128m
-Xmx512m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=//usr/share/eclipse/dropins
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dhelp.lucene.tokenizer=standard
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding
-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile
-XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/FileTypesPreferencesPage,getDottedValidSourceFiles
-XX:MaxPermSize=256m
-jar /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib64/eclipse//plugins/org.eclipse.platform_4.2.1.v20120814-120055/splash.bmp
-launcher /usr/lib64/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1503.so
-startup /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 1f40006
-preventMasterEclipseLaunch
-vm /usr/bin/java
-vmargs
-Xms128m
-Xmx512m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=//usr/share/eclipse/dropins
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dhelp.lucene.tokenizer=standard
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding
-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile
-XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/FileTypesPreferencesPage,getDottedValidSourceFiles
-XX:MaxPermSize=256m
-jar /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 

回答by ThinkingMonkey

This is what resolved the problem :

这就是解决问题的方法:

on a hunch(all the .ini files that I had seen on the net did not have the first line. And the meaning(English) of the words involved in the first line seemed weird), I removed the first line

凭直觉(我在网上看到的所有 .ini 文件都没有第一行。而且第一行涉及的单词的含义(英语)似乎很奇怪),我删除了第一行

-preventMasterEclipseLaunch 

and eclipse seems to be working!

日食似乎正在工作!

回答by Chris

First, sorry for all the trouble that I caused by introducing this flag, but... you should really know what you're doing if you want to start Eclipse as root, because:

首先,对于我引入这个标志造成的所有麻烦,我深表歉意,但是……如果您想以 root 身份启动 Eclipse,您应该真正知道自己在做什么,因为:

  • Eclipse is a plugin based app and runs all plugins no matter what. Working as root with IDEs is generally NOT a good idea.
  • Eclipse writes a lot of configuration details in the root filesystem - your installation is no longer verifiable by RPM, Eclipse installation is effectively broken - depending on what you have installed you may not be able to install any other Eclipse plugin.
  • Eclipse 是一个基于插件的应用程序,无论如何都会运行所有插件。以 root 身份使用 IDE 通常不是一个好主意。
  • Eclipse 在根文件系统中写入了大量配置细节——RPM 不再可以验证您的安装,Eclipse 安装实际上已损坏——根据您安装的内容,您可能无法安装任何其他 Eclipse 插件。