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

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

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -