解决方案:
从ActionListener调用以下代码。
ScheduledExecutorService schedulerExecutor = Executors.newScheduledThreadPool(2);Callable<Process> callable = new Callable<Process>() { @Override public Process call() throws Exception { Process p = Runtime.getRuntime().exec("cmd /c start /b java -jar D:\MovieLibrary.jar"); return p; }};FutureTask<Process> futureTask = new FutureTask<Process>(callable);schedulerExecutor.submit(futureTask);System.exit(0);
谢谢。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)