You can send any system command through a Java program. Are you developing or working with some kind of management tool and you want to know how to program it to stop Tomcat???
It depends on if you are running tomcat as a service or not, but either way, you're going send your commands from java through code looking something like this: Runtime.getRuntime().exec("command to shut down tomcat"); Or one of the exec variants, depending on what you need to do. -----Original Message----- From: dBenjamin [mailto:d...@mail.com] Sent: Thursday, February 25, 2010 10:30 PM To: users@tomcat.apache.org Subject: Java programm to Shutdwon the tomcat server Thanks for helping developers… Can you please help me I am facing problem to shutdown the tomcat server in windows platform (xp, vista, windows7). if you click CTRL+ C in the tomcat console window, server getting shutdown. Like that is any specific command to send through java program to shutdown the tomcat server. -- View this message in context: http://old.nabble.com/Java-programm-to-Shutdwon-the-tomcat-server-tp27714568p27714568.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org