突然的PC重新启动之后,eclipse无法启动并发出:VM已终止。退出码= 1

时间:2018-08-14 12:12:20

标签: eclipse crash ide

在电力中断期间,Eclipse IDE已打开。在机器的重新启动eclipse上无法正常运行,而是出现错误对话框,抱怨(崩溃):

JVM terminated. Exit code=1
/home/harrykar/Java8/eclipseJava/jre/bin/java
-jar /home/harrykar/Java8/eclipseJava/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/harrykar/Java8/eclipseJava/eclipse
-name Eclipse
--launcher.library /home/harrykar/Java8/eclipseJava/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so
-startup /home/harrykar/Java8/eclipseJava/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.overrideVmargs
-exitdata 380035
-vm /home/harrykar/Java8/eclipseJava/jre/bin/java
-vmargs
-jar /home/harrykar/Java8/eclipseJava/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar 

1 个答案:

答案 0 :(得分:0)

有一天前,我看到了“ JVM终止。退出代码= 1” 出现了不相关的问题(eclipse IDE after a brand new install not start but complains

所以我要做的第一件事是控制$ ECLIPSE_HOME中eclipse.ini文件的内容。奇怪的是eclipse.ini导致为空(可能是由于中断),所以我在$ ECLIPSE_HOME中从安装包.tar.gz中复制了原始eclipse.ini的新副本,幸运的是我还是拆了。

在下一个月食开始时,月食仍然抱怨:

 JVM terminated. Exit code=1
/home/harrykar/Java8/eclipseJava/jre/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJava//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/harrykar/Java8/eclipseJava//plugins/org.eclipse.platform_4.6.3.v20170301-0400/splash.bmp
-launcher /home/harrykar/Java8/eclipseJava/eclipse
-name Eclipse
--launcher.library /home/harrykar/Java8/eclipseJava//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so
-startup /home/harrykar/Java8/eclipseJava//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.appendVmargs
-exitdata 350035
-product org.eclipse.epp.package.java.product
-vm /home/harrykar/Java8/eclipseJava/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJava//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar

好吧,我忘记了将JDK路径放在eclipse.ini中

请注意,如下所示,在-vmargs之前编写这些行很重要

 -vm
/home/harrykar/Java8/jdk1.8.0_172/bin
-vmargs

添加之后,eclipse.ini现在看起来像:

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/home/harrykar/Java8/jdk1.8.0_172/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

最后,Eclipse可以按预期工作

最好的问候

Harry G.T.卡尔