Hi

Have you tried updating the your jar files. I once had this problem and I
updated the latest ant jar files which fixed it. Also try ensuring your
CLASSPATH is unset


On Tue, Jul 27, 2010 at 3:55 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2010/7/23 王科选 <rabbit...@gmail.com>:
> >  Hi, I have put the ant.jar and tools.jar into $CATALINA_HOME/lib
> directory
> > and while compiling JSP, this error occurs:
> >
> > java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> >
> > could anyone explain how to solve this problem?
> >
>
> Because that class is not in ant.jar, but in ant-launcher.jar
> (looking at Ant 1.7.1, as I do not have other versions with me at the
> moment, nor I know what version you are using).
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
with love
sreeprasad

Reply via email to