更新后无法启动eclipse - 一个或多个bundle未解析

时间:2013-01-16 16:51:21

标签: eclipse

更新eclipse后它再也没有启动了,我得到一个窗口说

发生了错误

引用日志文件(见下文)

有什么方法可以解决这个问题?

----日志文件-----

!SESSION 2013-01-16 23:31:46.709 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/dorjeduck/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/dorjeduck/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.ide_3.8.1.v20120828-165804.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.ide 2 0 2013-01-16 23:31:48.877
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.console_3.5.100.v20120521-2012.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.console 2 0 2013-01-16 23:31:48.877
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.junit_3.7.100.v20120523-1543.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.junit 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.pde.api.tools.ui_1.0.400.v20120523-2012.jar was not resolved.
!SUBENTRY 2 org.eclipse.pde.api.tools.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.ui_3.8.1.v20120814-144251.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.8.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.debug.ui_3.6.100.v20120530-1425.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.debug.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.wst.common.ui_1.1.500.v200911190730.jar was not resolved.
!SUBENTRY 2 org.eclipse.wst.common.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.cdt.ui_5.4.0.201206111645.jar was not resolved.
!SUBENTRY 2 org.eclipse.cdt.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/com.android.ide.eclipse.adt_20.0.3.v201208082019-427395.jar was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.pde.ds.ui_1.0.200.v20120530-1435.jar was not resolved.
!SUBENTRY 2 org.eclipse.pde.ds.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.3.0,4.0.0).

2 个答案:

答案 0 :(得分:1)

好像你正在使用MAC。我建议你从以下eclipse for osx重新安装Eclipse for MAC(只有你能负担得起这显然)。从日志中看,问题似乎与缺少插件有关。更新可能已删除旧的插件??尝试手动安装eclipse正在抱怨的插件,如Jface等,并将它们放在eclipse / plugin文件夹下,看看是否会导致错误日志。否则,唯一的选择是重新安装。 Eclipse有时会非常生气:)

答案 1 :(得分:1)

许多人reported similar problems。该主题有几个建议,但没有明确的解决方案。只有一个建议对我有用 - 这是一种从命令行将eclipse恢复到以前的状态的方法。它来自this blog post

在终端中:

  1. 转到包含eclipse安装的文件夹
  2. ls -lt p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile/
  3. 我的案例<som_profile_name>epp.package.java.profile,保罗的博客SDKProfile
  4. 您应该看到1372434812558.profile.gz等文件。
  5. 选择一个您认为确定无误的日期
  6. 汇总如下命令:

    eclipse -noSplash -application org.eclipse.equinox.p2.director -repository file:$(pwd)/p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile -profile <som_profile_name> -revert 1372434812558

  7. 如果这不起作用,请尝试添加-destination .(我已成功使用-destination,但我认为它应该无法使用)