查看了类似主题,例如高 CPU 使用率 - Eclipse 确实会产生“发生错误,请参阅日志文件” - 请参阅下面的一些内容。在 14.04 上运行良好。
我尝试在 ini 文件中修复“--launcher .GTK_version 2”,但没有任何效果。我正在运行 Java 8,所有 Java 程序都运行良好。
!SESSION 2016-10-03 10:37:12.966 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: --launcher.GTK_version 2
Command-line arguments: -os linux -ws gtk -arch x86_64 --launcher.GTK_version 2
!ENTRY org.eclipse.osgi 2 0 2016-10-03 10:37:13.778
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.778
!MESSAGE Bundle reference:file:plugins/org.eclipse.compare.core_3.5.200.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.compare.core 2 0 2016-10-03 10:37:13.778
!MESSAGE Missing imported package com.ibm.icu.text_3.6.1.
!SUBENTRY 2 org.eclipse.compare.core 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing imported package com.ibm.icu.util_3.6.1.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.workbench_3.8.1.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.update.scheduler_3.2.400.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.p2.ui.sdk.scheduler_1.1.0.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing imported package com.ibm.icu.util_4.0.1.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.help_3.6.0.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.help 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 2 org.eclipse.help 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing imported package com.ibm.icu.text_3.8.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.p2.ui.sdk_1.0.200.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.net_1.2.101.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.net 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.p2.ui.importexport_1.0.1.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.help.webapp_3.6.101.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.help.webapp 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing imported package com.ibm.icu.text_3.8.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.p2.ui_2.2.0.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.779
!MESSAGE Bundle reference:file:plugins/org.eclipse.platform_3.8.1.dist/ was not resolved.
!SUBENTRY 2 org.eclipse.platform 2 0 2016-10-03 10:37:13.779
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.780
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui_3.8.0.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui 2 0 2016-10-03 10:37:13.780
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.780
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.views.properties.tabbed_3.5.300.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.views.properties.tabbed 2 0 2016-10-03 10:37:13.780
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.780
!MESSAGE Bundle reference:file:plugins/org.eclipse.update.ui_3.3.0.dist.jar was not resolved.
!SUBENTRY 2 org.eclipse.update.ui 2 0 2016-10-03 10:37:13.780
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!ENTRY org.eclipse.osgi 2 0 2016-10-03 10:37:13.889
!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 2016-10-03 10:37:13.889
!MESSAGE Bundle org.eclipse.compare_3.5.300.dist [22] was not resolved.
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui.ide_[3.3.0,4.0.0).
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui.views_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui.editors_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.compare 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.compare.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.889
!MESSAGE Bundle org.eclipse.compare.core_3.5.200.dist [23] was not resolved.
!SUBENTRY 2 org.eclipse.compare.core 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing imported package com.ibm.icu.text_3.6.1.
!SUBENTRY 2 org.eclipse.compare.core 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing imported package com.ibm.icu.util_3.6.1.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.889
!MESSAGE Bundle org.eclipse.debug.ui_3.8.1.dist [47] was not resolved.
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.889
!MESSAGE Missing required bundle org.eclipse.ui.console_[3.4.0,4.0.0).
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.help_[3.4.0,4.0.0).
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui.ide_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.debug.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui.editors_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.890
!MESSAGE Bundle org.eclipse.equinox.p2.ui_2.2.0.dist [95] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui_3.6.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.equinox.security.ui_[1.0.0,2.0.0).
!SUBENTRY 2 org.eclipse.equinox.p2.ui 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.890
!MESSAGE Bundle org.eclipse.equinox.p2.ui.importexport_1.0.1.dist [96] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.equinox.p2.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.dialogs_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.model_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.viewers_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.importexport 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.890
!MESSAGE Bundle org.eclipse.equinox.p2.ui.sdk_1.0.200.dist [97] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui_3.6.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.equinox.p2.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing optionally imported package org.eclipse.compare_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing optionally imported package org.eclipse.compare.structuremergeviewer_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-10-03 10:37:13.890
!MESSAGE Bundle org.eclipse.equinox.p2.ui.sdk.scheduler_1.1.0.dist [98] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing required bundle org.eclipse.equinox.p2.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package com.ibm.icu.util_4.0.1.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.actions_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2016-10-03 10:37:13.890
!MESSAGE Missing imported package
答案1
有几件事可以解决您的 3.8 版本问题。首先删除失败的安装。使用以下命令应用全新安装:
$ apt remove --purge eclipse
$ apt update
$ apt upgrade
$ apt dist-upgrade
$ apt install eclipse
使用以下命令行启动 eclipse:
$ eclipse --launcher.GTK_version 2
您还可以考虑安装最新版本的 eclipse,可从Eclipse 官方网站。
实际上,您可以同时安装两者而不会发生冲突。只需在启动时选择选项提示,为新版本创建一个工作区即可。使用类似于 的内容回答工作区提示~/workspace-neon
。
现在您可以使用 Eclipse 的导入选项并浏览到您以前的工作区并导入您想要带来的项目。
Eclipse 以 tar 格式在 Linux 上发布,其中包含所有二进制文件。安装非常简单,只需创建一个安装目录,然后在其中运行提取 tar 文件即可。
要运行它,只需转到目录并运行:
$ ./eclipse --launcher.GTK_version 2
一个方便的系统范围位置是:
/opt/eclipse/eclipse-neon
安装最新的 Eclipse 版本
您可以使用以下命令将 exec 文件链接到搜索路径:
$ sudo ln -s /opt/eclipse/eclipse-neon/eclipse /usr/local/bin/eclipse-neon
eclipse-neon
现在您可以从系统上的任何位置启动它,而无需指定完整路径名。
拥有最新版本将为您带来额外的好处,即 Eclipse 社区的更好支持。当前版本中已解决了 3.8 版中的一些问题Eclipse version 4.6.0
。