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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -