Consider using java’s Runtime or ProcessBuilder to give you access to the Process when you create it:from java.lang import Runtime
myProcess = Runtime.getRuntime().exec("my command and options")
....
myProcess.destroy()
....
myProcess.destroyForcibly()This also give you many options on how the application is started, including stream redirection.