/*
Runtime????
?????????????????
?????????new???????????????????е?????????????
????????л??з?????????
????????????????????????????????÷???????????????????????????????
?????????????????????????????????ɡ?
?÷????static Runtime getRuntime();
*/
package com.fwj.reitheima;
import  java .io.IOException;
public class RuntimeDemo {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
//???Runtime?????
Runtime r=Runtime.getRuntime();
//?ü??±????????????
Process p = r.exec("notepad.exe SystemDemo.java");
Thread.sleep(5000);
p.destroy();
}
}