62,616
社区成员
发帖
与我相关
我的任务
分享
package com.sxzl.test;
public class TestRuntime {
public static void main(String args[]) {
try {
//String myArgs[] ={"http://www.csdn.com/"};
Process process = Runtime.getRuntime().exec(
//"cmd.exe /c start http://www.csdn.com/"
"C:\\Program Files\\Internet Explorer\\iexplore.exe"
+" http://www.csdn.com/"
);
} catch (Exception e) {
e.printStackTrace();
}
}
}