i\'m looking for a way to manage tomcat (on localhost) programmatically via java. I want to start/stop tomcat and deploy WARs.
Any help is appreciated.
You can use java Runtime class to call a bat file. make sure User running java process has rights to start and stop tomcat.
try{ Runtime.getRuntime().exec("c:/program files/tomcat/bin/startup.bat"); } catch(IOException e) {System.out.println("exception");}