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 发布于 2018-08-14 20:54:43
几天前,我曾看到一个无关问题(eclipse IDE after a brand new install not start but complains)的"JVM terminated. Exit code=1“
所以我做的第一件事就是在$ECLIPSE_HOME中控制eclipse.ini文件的内容。奇怪的是,eclipse.ini结果是空的(可能是因为停电),所以我用$ECLIPSE_HOME对安装包.tar.gz中的原始eclipse.ini做了一个全新的拷贝,幸运的是,我还是把它拆开了。
在下一次月食开始时,eclipse仍然抱怨:
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终于可以正常工作了
诚挚的问候
哈利·G·T·卡尔
https://stackoverflow.com/questions/51841148
复制相似问题