File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to use Ant?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use Ant??" Watch "How to use Ant??" New topic

How to use Ant??

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi everybody,
I'm developing a chat applet. The server is Tomcat3.2.2.
As such Tomcat doesn't support database connection pooling, but i heard that Ant can do it. When i downloaded Tomcat3.2.2, i got ant.bat and antRun.bat along with it. But i have no idea how to use Ant. Can u please tell me how to start using Ant. Also i have set an environment variable 'ANT_HOME' pointing to the Tomcat Home directory. Am i right ?? When i run the ant.bat i get the following exception
The system cannot find the path specified.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
Also note that i have org/apache directory under the src directory of Tomcat. But this directry doesnt contain the Tools directory as in the error message. The appache directory contains juz the 'tomcat' and 'jasper' directory.
My chat application is working fine, but i'd like to fine tune it using Ant.. Please help
...kindest regards

[This message has been edited by Sajee Joseph (edited August 13, 2001).]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I think you have got the wrong tool. Ant (as included with Tomcat) is a general purpose software build tool, used for compiling and transforming java code, web pages and so on before they are deployed. It is not designed at all for use as part of a running server. I also don't believe it provides any sort of database connection pooling.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: How to use Ant??
It's not a secret anymore!