free hit counter

Wednesday, November 02, 2005

Getting JDK 5.0 working with Ant and JUnit

I wanted to be able to do a command line build of the source. I got the main skeleton code to compile,as well as the test cases.

This is what I had to do to get it work:

* downloaded and unzipped Junit:
* dowloaded and installed the JDK 5.0 update:
* dowloaded and unzipped binary distribution of ant:
* set JAVA_HOME env var to "C:\Program Files\Java\jdk1.5.0_05"
* added JAVA_HOME\bin to my PATH env var
* added C:\apache-ant-1.6.5\lib to my CLASSPATH env var
* removed/renamed any exteraneous .java files in the tree (like "Copy of DBDeliverableBroker?.java")
* added C:\junit3.8.1;c:\junit3.8.1\junit.jar; to my class path (note the explicit addition of the junit.jar !!!!)


Post a Comment

<< Home