Two Laptop Bag*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use Ant??" Watch "How to use Ant??" New topic
Author

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
...saj

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

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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Ant??
 
Similar Threads
Auto restart of Tomcat?
Ant
Strange ant installation error in WinXP
Issue running ant.bat
ant is not working