I would like to restart the Tinker service on Windows XP, I have created a sublet that calls a batch file
throws public Zero doGet (HttpServletRequest req, HttpServletResponse Res) ServletException, IOException {Process p = Runtime.getRuntime (). Exec ("c: \ restart_tomcat.bat"); } my restart_tomcat.bat net stop "tomcat 6" net start "tomack 6" < / Pre> The request for servlet URL stops the Tomcat server, although it has not started.
RuntimeGetRight (). Exec ("cmd.exe / c start c: \ restart_tomcat.bat");
Comments
Post a Comment