How do I kill a specific process from Java code on Windows, if I have the specific PID.
I don't know any other solution, apart from executing a specific Windows command like Runtime.getRuntime().exec("taskkill /F /PID 827");
Windows
Runtime.getRuntime().exec("taskkill /F /PID 827");
2.1m questions
2.1m answers
60 comments
57.0k users