【发布时间】: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