public class TestRuntime {
public static void main(String[]args){
Process p=null;
try
{
p=Runtime.getRuntime().exec("notepad.exe TestRuntime.java");
Thread.sleep(5000);
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
p.destroy();
}
}
作者: 王洪宇 时间: 2013-3-20 08:41
public class Runtime {
private static Runtime currentRuntime = new Runtime();