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");
1.4m articles
1.4m replys
5 comments
56.9k users