0

I am follow this link, and I try to install Junit4 on Windows XP by using Cygwin.

by use this command:

apt-cyg install bison flex make sed juint4

the result of this command is

Installing junit4
packag junit4 not found or ambiguous

So what is the main cause for this problem?

Hana90
  • 943
  • 5
  • 17
  • 37

1 Answers1

1

Cygwin's package manager (apt-cyg) doesn't have any JUnit packages built in. The instructions you're reading are for other platforms, like Ubuntu, which does have a package named "junit4".

Luckily, JUnit is only two JAR files, so you should be able to install it very easily yourself.

Jeff Bowman
  • 90,959
  • 16
  • 217
  • 251
  • where can I place these two JAR on the PC ? – Hana90 Aug 26 '13 at 10:52
  • I mean in which directory ? – Hana90 Aug 26 '13 at 10:58
  • @Hana90 You'll need to check [your CLASSPATH](http://docs.oracle.com/javase/tutorial/essential/environment/paths.html), or just pick a directory and [specify it manually](http://stackoverflow.com/questions/250166/noclassdeffounderror-while-trying-to-run-my-jar-with-java-exe-jar-whats-wron). There are a few standard places but they vary enough that I can't give you any sort of "standard answer" any more than I can tell you which drawer in your house you should put your silverware in. – Jeff Bowman Aug 26 '13 at 20:13