Killing a process using Java

The Solution to Killing a process using Java is


On Windows, you could use this command.

taskkill /F /IM <processname>.exe 

To kill it forcefully, you may use;

Runtime.getRuntime().exec("taskkill /F /IM <processname>.exe")

~ Answered on 2012-07-06 17:17:15


Most Viewed Questions: