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: http://prdownloads.sourceforge.net/junit/junit3.8.1.zip?download
* dowloaded and installed the JDK 5.0 update: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jdk-1.5.0_05-oth-JPR&SiteId=JSC&TransactionId=noreg
* dowloaded and unzipped binary distribution of ant: http://ant.apache.org/bindownload.cgi
* 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 !!!!)

0 Comments:

Post a Comment

<< Home