Is there a way to stop a running process using java? I'm using this piece of code to run a command:
Process process = Runtime.getRuntime().exec(String.format("cmd /c %s", command));
Afterwards, I need to end/stop/terminate it.
Does anyone knows how to do this?