package packagetest8;
public class Javatest68 {
public static void main(String[] argv) {
Runtime run=Runtime.getRuntime();
Process pro=run.exec("notepad.exe");
Thread.sleep(5000);
pro.destroy();
}
}
.exec提示未处理的异常类型 IOException
Thread.提示未处理的异常类型 InterruptedException
用throws可以解决但是!!!不知道这俩错误怎么产生的!!!