0

我在 2011 年为 JavaScript Web Developers 安装了 Eclipse IDE,版本:Indigo Service Release 1 Build id:20110916-0149,现在将其用于 Java 开发,但是当我右键单击 Java 类时,看不到有关 jUnit 的菜单。实际上 jUnit 没有出现在菜单中。

在逛了论坛之后,我尝试安装 JDT,因为我知道这是包含 jUnit 的地方。但是安装失败,因为与已经安装的东西冲突......

你能帮忙吗?

弗雷德

冲突细节:

I get : Cannot complete the install because of a conflicting dependency.
  Software being installed: Eclipse Java Development Tools 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 (org.eclipse.jdt.feature.group 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1)
  Software currently installed: Shared profile 1.0.0.1325791064663 (SharedProfile_epp.package.javascript 1.0.0.1325791064663)
  Only one of the following can be installed at once: 
    Java Development Tools Launching Support 3.5.0.v20090527 (org.eclipse.jdt.launching 3.5.0.v20090527)
    Java Development Tools Launching Support 3.6.0.v20110509 (org.eclipse.jdt.launching 3.6.0.v20110509)
    Java Development Tools Launching Support 3.6.1.v20110803_r371 (org.eclipse.jdt.launching 3.6.1.v20110803_r371)
    Java Development Tools Launching Support 3.5.1.v20100108_r352 (org.eclipse.jdt.launching 3.5.1.v20100108_r352)
    Java Development Tools Launching Support 3.6.1.v20111006_r372 (org.eclipse.jdt.launching 3.6.1.v20111006_r372)
  Cannot satisfy dependency:
    From: Shared profile 1.0.0.1325791064663 (SharedProfile_epp.package.javascript 1.0.0.1325791064663)
    To: org.eclipse.jdt.launching [3.6.1.v20110803_r371]
  Cannot satisfy dependency:
    From: Eclipse Java Development Tools 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 (org.eclipse.jdt.feature.group 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1)
    To: org.eclipse.jdt.launching [3.6.1.v20111006_r372]
4

1 回答 1

0

这看起来很奇怪。一些背景:

插件“Java Development Tools Launching Support”不喜欢在 Eclipse 中安装不同版本的自身。Eclipse 3.7.2 附带版本3.6.1.v20111006_r372.

看来您仍然安装了 3.5 和 3.6 的旧版本。您是否从旧版本升级到 3.7?

此类问题通常只能通过重新安装 Eclipse 来解决。删除磁盘上的插件无济于事,因为 p2 会记住安装了哪些插件,而不关心插件是否仍然存在。您可能也无法删除该插件,因为其他一些插件将依赖它。

于 2013-10-01T09:48:20.283 回答