ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jill Stephenson" <jill.stephen...@suncorpmetway.com.au>
Subject Re: Setting classpath for Taskdef
Date Mon, 10 Dec 2001 01:28:39 GMT
As per the optional task doco for MimeMail "JavaMail and
Java Activation Framework are required for this task."  So
if you don't want to put j2ee.jar in your classpath you must
at least download the apis and put them in your classpath.

--
Jill

----- Original Message -----
From: "William Ferguson" <william_ferguson@versata.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Monday, December 10, 2001 10:32 AM
Subject: RE: Setting classpath for Taskdef


> Thanks Eric,
>
> optional.jar is already in %ANT_HOME%\lib and it finds it OK.
> It's just not finding j2ee.jar
>
> If I explicitly add j2ee.jar to the classpath when I invoke Ant then
> everything works OK.
> But that is not an optimal solution.
>
>
> William
>
>
> > -----Original Message-----
> > From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> > Sent: Monday, 10 December 2001 10:48
> > To: Ant Users List
> > Subject: Re: Setting classpath for Taskdef
> >
> >
> > 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" <william_ferguson@versata.com>
> > To: "Ant User (E-mail)" <ant-user@jakarta.apache.org>
> > 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  william_ferguson@versata.com
> > > www.versata.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


-----------------------------------------------------------------------------------

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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message