Hamish Good - 2011-09-22

I am looking to build an installer that deploys a Tomcat web application and sets up a mysql database schema. I would like the installer to test for the existence of Tomcat on the Application Server and test that a database server is available based on connection parameters passed into the installer by the installee (if thats a real word?). Firstly is it possible to have Ant Installer check for the existence of Tomcat and run a basic SQL connection to establish if the database is reachable and Secondly can it establish if the versions of these dependant products meet a defined set of requirements.
I would also like to extend this test to ensure the correct JDK/JRE version has been installed.
This is my first Installer project and so I am a nube in terms of capability