插件安装后Eclipse启动问题

时间:2011-03-07 17:16:38

标签: java eclipse

我使用Eclipse 3.4.2并为eclipse安装了Android SDK插件。但是在我开始日食安装后,我收到错误信息

enter image description here

以下是日志所说的内容

!SESSION 2011-03-07 11:13:53.163 -----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2011-03-07 11:13:53.632
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY org.eclipse.osgi 2 0 2011-03-07 11:13:53.647
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-07 11:13:53.647
!MESSAGE Bundle reference:file:plugins\com.android.ide.eclipse.traceview_10.0.0.v201102162101-104271.jar was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.647
!MESSAGE Missing required bundle org.eclipse.core.runtime_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.647
!MESSAGE Missing required bundle org.eclipse.ui.ide_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648
!MESSAGE Missing required bundle org.eclipse.jdt.core_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648
!MESSAGE Missing required bundle org.eclipse.core.resources_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648
!MESSAGE Missing required bundle org.eclipse.core.filesystem_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648
!MESSAGE Missing required bundle org.eclipse.jdt.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-07 11:13:53.648
!MESSAGE Bundle reference:file:plugins\com.android.ide.eclipse.hierarchyviewer_10.0.0.v201102162101-104271.jar was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.hierarchyviewer 2 0 2011-03-07 11:13:53.648

有没有人遇到同样的问题?

2 个答案:

答案 0 :(得分:2)

我已经通过重新安装eclipse解决了这个问题,而不是我想要的,但是此刻我会选择这个。

答案 1 :(得分:2)

许多人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,但我认为它应该无法使用)