i have a requirement to start tomcat server within my code. how can check either tomcat is started or not, and if not then i will start it? i tried r.exec("c:\\jakarta-tomcat-4.0.2\\bin\\startup.bat"), but i got some message from tomcat to set the path for catalina_home. but, when i tried r.exec("set CATALINA_HOME=c:\\jakarta-tomcat-4.0.2"), i got some error message.