You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 王科选 <ra...@gmail.com> on 2010/07/23 18:38:00 UTC
change the default javac from JDT to ant
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: change the default javac from JDT to ant
Posted by sreeprasad sp <sr...@gmail.com>.
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
<kn...@gmail.com>wrote:
> 2010/7/23 王科选 <ra...@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
with love
sreeprasad
Re: change the default javac from JDT to ant
Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/7/23 王科选 <ra...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: change the default javac from JDT to ant
Posted by Karthik Nanjangude <ka...@xius-bcgi.com>.
Hi
Provide the reason why this jar file need to be applied to "$CATALINA_HOME/lib" ???
With regards
Karthik
-----Original Message-----
From: 王科选 [mailto:rabbitwkx@gmail.com]
Sent: Friday, July 23, 2010 10:08 PM
To: users@tomcat.apache.org
Subject: change the default javac from JDT to ant
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org