以记事本程序为例Process p = Runtime.getRuntime().exec("notepad.exe");try { p.waitFor();//等待notepad.exe的结束}catch(InterruptedException ex) { System.err.println("ERROR"); System.exit(1);}//继续自己的程序参见http://zhidao.baidu.com/question/100219452.html