This content has been marked as final. Show 4 replies
That class is not in the jar. You need to download the junit4.4.zip and extract it which will create a junit4.4 directory. Change into that directory and run:
java -classpath ".;./junit-4.4.jar" junit.samples.AllTests
This is case-sensitive
Thanks for that. I'm slightly confused by the -callspath argument in your example:
Looking at the docs this seems to be saying the current directory AND the jar. If I remove the .; at the start it doesn't work. Is this because it overrides the default ( just ".") and just looks in the jar and then doesn't find the AllTests class that I am trying to run?
Yes you are correct
Fantastic, makes sense now :)