At the very least you'll also need Ant's optional.jar in that nested
classpath, as that is where
org.apache.tools.ant.taskdefs.optional.net.MimeMail lives.

I'm not sure that will complete fix it as I haven't tried it myself, but
that should get it a bit closer.

    Erik


----- Original Message -----
From: "William Ferguson" <[EMAIL PROTECTED]>
To: "Ant User (E-mail)" <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 6:33 PM
Subject: Setting classpath for Taskdef


> Has anyone managed to set the classpath attribute for TaskDef?
>
> Eg I wanted to get the MimeMail task to work without having to put
j2ee.jar
> into %ANT_HOME%\lib
> or specify it on the command line when invoking Ant. The doco for Taskdef
> (and some posts on
> this list) seemed to suggest that the following was correct usage.
>
> <taskdef name="mimeMail"
> classname="org.apache.tools.ant.taskdefs.optional.net.MimeMail"
> <classpath>
> <pathelement location="${project}/lib/j2ee/j2ee.jar"/>
> </classpath>
> </taskdef>
>
> where ${project}/lib/j2ee/j2ee.jar is where the j2ee.jar resides.
> But I just get "Could not create task of type: mimeMail due to
> java.lang.NoClassDefFoundError: javax/mail/Address"
>
> Any suggestions?
>
>
>
> William Ferguson
> Technical Lead - Workflow Functionality
> Versata, Inc.
> "Business Logic Development and Management"
> Ph     +61 03 9428 0788
> Fax    +61 03 9428 0786
> Email  [EMAIL PROTECTED]
> www.versata.com
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to