简体   繁体   English

Eclipse Indigo上的jUnit

[英]jUnit on eclipse Indigo

I installed Eclipse IDE for JavaScript Web Developers, Version: Indigo Service Release 1 Build id: 20110916-0149, in 2011 and use it for java development now but can see no menu about jUnit when I right click on a java class. 我在2011年为JavaScript Web Developers安装了Eclipse IDE,版本:Indigo Service Release 1 Build ID:20110916-0149,现在将其用于Java开发,但是当我右键单击Java类时,看不到关于jUnit的菜单。 Actually jUnit appears nowhere in the menus. 实际上,jUnit在菜单中无处显示。

After going around forums, I tried to install JDT, as I understood this is where jUnit is contained. 遍历论坛后,我尝试安装JDT,据我了解,这是jUnit所在的位置。 But installation failed because of a conflict with something already installed... 但是由于与已安装的东西冲突而导致安装失败...

Can you help please ? 你能帮忙吗?

FRED 弗雷德

Conflict details : 冲突详细信息:

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]

This looks pretty odd. 这看起来很奇怪。 Some background: 一些背景:

The plugin "Java Development Tools Launching Support" doesn't like to have different versions of itself installed in Eclipse. 插件“ Java开发工具启动支持”不喜欢在Eclipse中安装本身的不同版本。 Eclipse 3.7.2 comes with version 3.6.1.v20111006_r372 . Eclipse 3.7.2随附版本3.6.1.v20111006_r372

It seems that you still have old versions from 3.5 and 3.6 installed. 似乎您仍然安装了3.5和3.6的旧版本。 Did you upgrade from an old version to 3.7? 您是否从旧版本升级到3.7?

Problems like that are usually only solvable by installing Eclipse again. 通常只能通过再次安装Eclipse来解决此类问题。 Deleting the plugin on the disk won't help because p2 remembers which plugins are installed and doesn't care whether the plugin still exists. 删除磁盘上的插件将无济于事,因为p2会记住已安装了哪些插件,并且不在乎该插件是否仍然存在。 You probably also can't delete the plugin because some other plugin will depend on it. 您可能也无法删除该插件,因为某些其他插件将依赖它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM