how to kill a process in java after completion of a job in java -



how to kill a process in java after completion of a job in java -

i have code similar to:

url url = activator.getdefault().getbundle().getentry("/resources/server.bat"); string fileurl = filelocator.tofileurl(url).tostring(); string commandline = "cmd.exe /c start " +fileurl; process process= runtime.getruntime().exec(commandline);

how can kill process work done in java

process.destroy()

but won't have command on process started server.bat separately started

java

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -