package com.kkoolerter;
import java.io.IOException;
public class OpenIE {
public static void main(String[] args) throws IOException {
String url = "www.baidu.com";
ProcessBuilder builder = new ProcessBuilder(
"c:\\Program Files\\Internet Explorer\\iexplore", url);
builder.start();
}
}
import java.io.IOException;
public class OpenIE {
public static void main(String[] args) throws IOException {
String url = "www.baidu.com";
ProcessBuilder builder = new ProcessBuilder(
"c:\\Program Files\\Internet Explorer\\iexplore", url);
builder.start();
}
}
转载于:https://blog.51cto.com/wujuxiang/432475