SE450: JUnit: Installation [30/41] Previous pageContentsNext page

Installation of JUnit is very similar to Ant, but is simpler. Just unzip the .zip file onto your hard drive in any location. I recommend something like c:\, which will create a directory on your c: drive called junit3.7. JUnit is now installed.

You do not need to use Ant in order to use JUnit, but they still work together. I would recommend getting JUnit working first, and then add in Ant if you have time, since JUnit is tied directly to some homework points. We will (optionally) be integrating JUnit with Ant, so there are a few more steps to go through for that.

First, copy the file c:\junit3.8.1\junit.jar to your lib directory in your se450 development directory. Then, copy it to your ANT_HOME\lib directory as well. THIS STEP IS IMPORTANT IF YOU WANT TO USE JUNIT AND ANT TOGETHER!.

SET CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\junit.jar

The reason for this will be discussed later.

Previous pageContentsNext page