我有一个类似于的代码:
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);
Run Code Online (Sandbox Code Playgroud)
一旦在java中完成工作,我怎么能杀死进程
java ×1