ProcessBuilder gives error on command that runs successfully on command prompt
posted 1 year ago
I am trying to programatically kill Tomcat7.exe service. The command runs successfully when run directly from Command Prompt (when run as an Administrator), but gives error when I try to program it using ProcessBuilder.
The command I amd trying to run is : Taskkill /F /IM tomcat7.exe