Search
Tweets
Blogroll
Powered by Squarespace
« Who needs a Nobel Prize and a million bucks | Main | Yahoo! seals »
Tuesday
Aug222006

Apache Cactus on OS X

Apache Cactus is a test framework for Java server-side code.

If you try to use the ant cactus task on a stock OS X, you’ll run into the dreaded

“taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test”

even though you have the junit jar in your classpath.

Solution:

  1. find out which ant you use: $ ls -al `which ant`

  2. copy junit-x.y.z.jar into that ../lib location, for example, /Developer/Java/Ant/lib

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.