question about using Runtime.getRuntime.exec() in Tomcat# Java - 爪哇娇娃
b*l
1 楼
Now I am trying to launch an external application in my web application, and
killing it by PID after a while. But when I execute Runtime.getRuntime.exec
() in my JSP page or Servlet, Tomcat is stuck in that page and do not
display anything. It seems that it will run forever. Is there any solution
to solve this problem?
BTW, I do not use System.exit() in my program. It may cause Security Manager
problem.
Thanks!
killing it by PID after a while. But when I execute Runtime.getRuntime.exec
() in my JSP page or Servlet, Tomcat is stuck in that page and do not
display anything. It seems that it will run forever. Is there any solution
to solve this problem?
BTW, I do not use System.exit() in my program. It may cause Security Manager
problem.
Thanks!