打开 RTC 'Jazz Administration' 透视图时,Eclipse JVM 退出代码 127

Eclipse JVM Exit Code 127 when RTC 'Jazz Administration' perspective was opened

我安装了一个新的 RHEL6.5 OS 并安装了 Java 64 位 tutorial。版本检查显示:

[user@localhost bin]$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)

并且JAVA_HOME和JAVA_JRE设置正确:

[user@localhost bin]$ echo $JAVA_HOME && echo $JRE_HOME
/opt/jdk1.7.0_75
/opt/jdk1.7.0_75/jre

我安装了eclipse的latest version (4.4.2) 并且可以执行。由于我的项目设置,我安装了带有 p2 存档的 RTC 插件:RTC-Client-p2Repo-5.0.2.zip

成功启动后我想换成Jazz Administration视角Java每次都因为这个JVM错误崩溃

JVM terminated. Exit code=127 /opt/jdk1.7.0_75/jre/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=2048m
-Xms40m
-Xmx2048m
-jar /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/user/eclipse//plugins/org.eclipse.platform_4.4.2.v20150204-1700/splash.bmp
-launcher /home/user/eclipse/eclipse
-name Eclipse
--launcher.library /home/user/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316/eclipse_1607.so
-startup /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 148010
-product org.eclipse.epp.package.jee.product
-vm /opt/jdk1.7.0_75/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=2048m
-Xms40m
-Xmx2048m
-jar /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

有人可以帮我解决这个错误吗?我在 eclipse.ini 中尝试了不同的参数。这是我当前 eclipse.ini 在发生错误时使用的。

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/opt/jdk1.7.0_75/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=1024m
-Xms40m
-Xmx1024m

好的,我找到了失败点。导致问题的是 SWT 浏览器。

This is an eclipse problem (bug 343889).
Many of the linux distributions recently underwent an upgrade to xulrunner-2.0 which is incompatible with some versions of eclipse. (even with xmlrunner-compat packages)

我在这些帖子中找到了有关此错误的一些信息:

  • Error while delivering code in RTC(引用来源)
  • SWT Browser & Eclipse

将这些行添加到 eclipse.ini 后,我遇到了另一个错误。

-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.DefaultType=mozilla

但是这次是在我的 .metadata.

中的 .log 中登录的
!ENTRY com.ibm.team.process.ide.ui 4 0 2015-03-19 03:11:17.361
!MESSAGE Error logged from Process Client UI: 
!STACK 0
org.eclipse.swt.SWTError: No more handles [Could not detect registered XULRunner to use]
    at org.eclipse.swt.SWT.error(SWT.java:4467)
    at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:681)
    at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
    ...

如果有人要查找这些错误,请尝试以下帖子:

  • How to install XULRunner for Eclipse
  • swt browser No more handles Error
  • SWT Browser not working?