Accounts - Error javalangnoclassdeffounderror, How to install apache ant
Error javalangnoclassdeffounderror
error java.lang.NoClassDefFoundErrorIf you have a tomcat application server and if you are facing java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException error while running jsp or servlet then do the following steps :
How to install apache ant
1) Download apache-ant-1.7.1-bin.tar.gz2) Extarct the tar.gz file by using the command
# tar-xzvf apache-ant-1.7.1-bin.tar.gz # cd apache-ant-1.7.1/lib3) copy all ant related jar file to your tomcat's lib directory by using the following appropriate command:
For tomcat 5.X :
# cp ant*.jar /usr/local/tomcat5/common/libthis is for tomcat5.X which is installed under /usr/local/ . If tomcat is installed in a NGASI environmant then you can use the command cp ant*.jar /home//appservers/apache-tomcat5.X/common/lib
For tomcat 6.X :
# cp ant*.jar /usr/local/tomcat6/common/libthis is for tomcat5 which is installed under /usr/local/ . If tomcat6 is installed in a NGASI environmant then you can use the command cp ant*.jar /home//apache-tomcat6.X/lib
By installing the apache ant you can get rid of the error java.lang.NoClassDefFoundError
The topic on Accounts - Error javalangnoclassdeffounderror is posted by - Math
Hope you have enjoyed, Accounts - Error javalangnoclassdeffounderrorThanks for your time