Add JUNIT_HOME/junit.jar to your classpath before invoking ant. -- Jill
----- Original Message ----- From: "Bryan P. Glennon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 11, 2001 8:18 AM Subject: JUnit optional task When I try to use the Junit task (with ant 1.4.1, Junit 3.7 and jdk1.2.2) I get the following error: Could not create task of type: junit. Common solutions are to use taskdef to declare your task, or, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME). Well, optional.jar is in the ANT_HOME/lib dir (as is jakarta-ant-1.4.1-optional.jar.) Actually, optional.jar is just a copy of jakarta-ant-1.4.1-optional.jar. So, what am I doing wrong? Thanks, Bryan -- Bryan Glennon (mailto:[EMAIL PROTECTED]) BPG Consulting, Inc. (http://www.bpgc.com) Tech Question? (mailto:[EMAIL PROTECTED]) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ----------------------------------------------------------------------------------- The contents of this message are the views of the Author and do not necessarily reflect the views of SUNCORP METWAY LTD ABN 66 010 831 722. The content of this e-mail, including attachments is a confidential communication between the Suncorp Metway Group and the intended addressee. Any unauthorised use of the contents is expressly prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). http://www.suncorpmetway.com.au -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>