25

I am getting following error message when I tried to install cobertura plugin in eclipse kepler (java/j2ee version) through eclipse market place.

Cannot complete the install because one or more required items could not be found. Software being installed: eCobertura 0.9.8.201007202152 (ecobertura.feature.group 0.9.8.201007202152)

Missing requirement: eCobertura 0.9.8.201007202152 (ecobertura.feature.group 0.9.8.201007202152) requires 'org.junit4 0.0.0' but it could not be found

Community
  • 1
  • 1
Krunal Shah
  • 653
  • 2
  • 10
  • 16

4 Answers4

22

I was able to get eCobertura to install by copying over the junit plugin subdirectories from a previous version of Eclipse into my plugins/ directory, then restarting Eclipse.

The junit version that came with my Eclipse (Spring Toolsuite v3.3) was org.junit_4.11.0.v201303080030. This is that one that caused eCobertura install to fail.

The two versions that I copied over from STS 3.2 were org.junit4_4.8.1.v20120523-1257 and org.junit_4.10.0.v4_10_0_v20120426-0900.

user2816065
  • 291
  • 1
  • 3
  • 6
    Thanks for looking into this, however we used EclEmma plugin in place of cobertura. It works perfectly in both (java/j2ee) variant of eclipse. – Krunal Shah Sep 26 '13 at 13:21
  • +1, it worked for me and edited and for easy execution – dev2d May 30 '14 at 23:26
  • 1
    +1 - tidy wee solution. hopefully the ecobertura plugin can be updated so these steps are not needed for users – Damien Jun 09 '14 at 09:17
  • It worked perfectly fine for me. I copied org.junit4_4.8.1.v20100525 and org.junit_4.8.1.v4_8_1_v20100427-1100 from my previous Eclipse 3.6.2 Helios installation. – Rushi Shah Jul 18 '14 at 09:34
  • If needed: http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/tools/buckminster/headless-4.2/plugins/ – Raphael Amoedo May 17 '16 at 01:14
  • After placing old version of Junit jar , Restart your eclipse , then try to install cobertura .. – Anurag_BEHS Nov 02 '17 at 14:06
12

Installing eCobertura on new eclipse (Kepler, Luna) causes a problem because of newer version of JUnit package which is not treated by eCobertura dependencies checker.

One of solutions (suggested in the previous answer) is that you have to copy org.junit* packages from old eclipse installation, but that can be a problem if you don't have it.

Solution for completely new installation is very similar: You have to download org.junit4_4.8.1.v20120523-1257.jar from the internet and just place it to plugins folder of eclipse.

Note that you don't need to add org.junit_4.10.0.v4_10_0_v20120426-0900.jar in that case.

After that, you will be able to install eCobertura.

Bosko Mijin
  • 3,287
  • 3
  • 32
  • 45
  • 3
    Here's the *really* odd part. It's 2015 now and the plugin is *still* stuck on that old version. Is it even being maintained anymore? – jjpe May 22 '15 at 14:08
3

Download eclipse from this link and go to $eclipse_home/plugins and copies these folders

  • org.junit_4.10.0.v4_10_0_v20120426-0900
  • org.junit4_4.8.1.v20120523-1257
Tunaki
  • 132,869
  • 46
  • 340
  • 423
0

A little late, but just wanted to add that this worked for STS 3.8.1 using Eclipse Mars. Simply download the JAR specified above and place into the 'plugins' folder.

jdavis
  • 23
  • 3