how to kill a process in java after completion of a job in java
<p>I have a code similar to:</p>

<pre><code>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);
</code></pre>

<p>How can I  kill the process as soon as the work is done  in java</p>
