Java使用指定URL打开IE浏览器

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();

}



}



 

 

你可能感兴趣的:(java)