【问题标题】:Eclipse wont start xubuntu 14.04Eclipse 不会启动 xubuntu 14.04
【发布时间】:2014-08-19 08:46:04
【问题描述】:

在我的 Xubuntu 机器上启动 Eclipse 时遇到问题,但我不确定自上次以来发生了什么变化。我使用 Eclipse 没有任何问题。

控制台输出为:

No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

我尝试过运行 Eclipse -clean 但得到了相同的结果。

谁能帮我解决这个问题?

编辑1:

eclipse -debug -console -consoleLog 从控制台返回:

Start VM: /usr/bin/java
-Xms512m
-Xmx1024m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=512m
-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 82800f
-debug
-console
-consoleLog
-vm /usr/bin/java
-vmargs
-Xms512m
-Xmx1024m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=512m
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar 
Install location:
    file:/usr/lib/eclipse/
Configuration file:
    file:/usr/lib/eclipse/configuration/config.ini loaded
Configuration location:
    file:/home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/configuration/
Configuration file:
    file:/home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/configuration/config.ini loaded
Shared configuration location:
    file:/usr/lib/eclipse/configuration/
Framework located:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.8.1.dist.jar
Framework classpath:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.8.1.dist.jar
Splash location:
    /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
Debug options:
    file:/home/geeky/Desktop/.options not found
Time to load bundles: 31
!SESSION 2014-08-19 09:55:33.765 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86_64 -debug -console -consoleLog

!ENTRY org.eclipse.osgi 2 0 2014-08-19 09:55:36.478
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-08-19 09:55:36.479
!MESSAGE Bundle reference:file:../../../home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/plugins/org.eclipse.m2e.usagedata_1.0.200.20111228-1245.jar was not resolved.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 09:55:36.479
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.6)))".
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 09:55:36.479
!MESSAGE Missing required bundle org.eclipse.epp.usagedata.gathering_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2014-08-19 09:55:36.482
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-08-19 09:55:36.483
!MESSAGE Bundle org.eclipse.m2e.usagedata_1.0.200.20111228-1245 [219] was not resolved.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 09:55:36.483
!MESSAGE Missing required bundle org.eclipse.epp.usagedata.gathering_0.0.0.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 09:55:36.483
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.6)))".
Starting application: 2720
____________________________
Welcome to Apache Felix Gogo

g! No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

编辑 2:现在安装了官方 Sun java 8,eclipse 仍然没有运行控制台的输出:

eclipse -debug -console -consoleLog
Start VM: /usr/lib/jvm/jdk1.8.0_11/bin/java
-Xms512m
-Xmx1024m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=512M
-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 25f000f
-debug
-console
-consoleLog
-vm /usr/lib/jvm/jdk1.8.0_11/bin/java
-vmargs
-Xms512m
-Xmx1024m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=512M
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Install location:
    file:/usr/lib/eclipse/
Configuration file:
    file:/usr/lib/eclipse/configuration/config.ini loaded
Configuration location:
    file:/home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/configuration/
Configuration file:
    file:/home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/configuration/config.ini loaded
Shared configuration location:
    file:/usr/lib/eclipse/configuration/
Framework located:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.8.1.dist.jar
Framework classpath:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.8.1.dist.jar
Splash location:
    /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
Debug options:
    file:/home/geeky/Desktop/.options not found
Time to load bundles: 37
!SESSION 2014-08-19 10:46:11.409 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_11
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86_64 -debug -console -consoleLog

!ENTRY org.eclipse.osgi 2 0 2014-08-19 10:46:13.636
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-08-19 10:46:13.637
!MESSAGE Bundle reference:file:../../../home/geeky/.eclipse/org.eclipse.platform_3.8_155965261/plugins/org.eclipse.m2e.usagedata_1.0.200.20111228-1245.jar was not resolved.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 10:46:13.637
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.6)))".
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 10:46:13.637
!MESSAGE Missing required bundle org.eclipse.epp.usagedata.gathering_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2014-08-19 10:46:13.641
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-08-19 10:46:13.642
!MESSAGE Bundle org.eclipse.m2e.usagedata_1.0.200.20111228-1245 [219] was not resolved.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 10:46:13.642
!MESSAGE Missing required bundle org.eclipse.epp.usagedata.gathering_0.0.0.
!SUBENTRY 2 org.eclipse.m2e.usagedata 2 0 2014-08-19 10:46:13.642
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.6)))".
Starting application: 2235
____________________________
Welcome to Apache Felix Gogo

g! No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:000] No bp log location saved, using default.
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

当日志以 Sun java 1.8 开始时,我不确定为什么在崩溃之前仍然列出 OPENJDK?

EDIT3:遵循本指南http://akovid.blogspot.com/2012/08/installing-eclipse-juno-42-in-ubuntu.html 我已经安装了最新的 eclipse 并迁移了我的工作区。它现在似乎正在工作 谢谢 安迪

【问题讨论】:

  • 试试eclipse -debug -console -consoleLog。然后 Eclipse 将在您启动它的终端中打印大量日志消息。您的工作区中还有一个错误日志:查找.metadata/.log。它可能包含一些有用的东西。
  • 谢谢。 .metadata/.log 文件包含与上面发布的控制台输出相同的内容。
  • 什么是“Apache Felix Gogo”?

标签: eclipse


【解决方案1】:

我在您的日志中看到两个问题:

  1. Apache Felix Gogo
  2. OpenJDK 运行时

我对 OpenJDK 的体验……不好。我尽可能避免它。从 Oracle 网站下载官方 Java 版本,将其安装在某处并point Eclipse to it

接下来是这个奇怪的“Apache Felix Gogo”。这似乎是一个 OSGi 实现。我不知道为什么会在那里。 Eclipse 带有自己的 OSGi 容器 (Equinox)。

我的猜测是,有人试图用“纯”开源组件替换尽可能多的 Eclipse 组件,但他们未能正确地做到这一点(比如在出现问题时给出有用的错误消息)。

尝试从https://www.eclipse.org/downloads/ 下载 Eclipse,并避免使用所有和任何“特殊”Eclipse 版本。我见过 Redhat 和 Debian 的人试图打包 Eclipse。虽然它可能对他们有用,但这对我来说从来没有可靠地工作过。

【讨论】:

  • 所以我已经从 sun 安装了 JDK 1.8.0_11,但现在我正在努力让 Eclipse 获取该 javavm。我已经运行了 eclipse -vm /usr/lib/jvm/jdk1.8.0_11/bin/ 但仍然列出了 OPENJDK 运行时
  • -vm 期望运行的 Java 可执行文件的名称。
  • 你能给我一个想法,它可能是 linux 格式的吗?从上面的日志中我没有使用 sun java 可执行文件吗?
  • -vm /usr/lib/jvm/jdk1.8.0_11/bin/java。您还可以编辑文件eclipse.ini 并将路径放入其中。但请确保将选项名称 -vm 放在一行中,将路径放在下一行中,并且两者都必须在 -vmargs 之前
  • 非常感谢。我已经编辑了 eclipse.ini,但在 jdk/bin 目录处停了下来。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-07-18
相关资源
最近更新 更多