打开IE:
Runtime.exec("iexplore");
打开指定url:
Runtime.exec("cmd /c start "+url);
或Runtime.exec("iexplore "+url);

解决方案 »

  1.   

    String[] driver = new String[] {
            "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "X", "Y", "Z"};
        for (int i = 0; i < driver.length; i++) {
          try {
            Runtime.getRuntime().exec(
                driver[i] + ":\\Program Files\\Internet Explorer\\IEXPLORE.EXE " +
                url);
            System.exit(0);
          }
          catch (Exception ex) {
            pub pub = new pub();
            pub.saveLog(this.toString() + ex.toString());
          }
        }这里有打开的代码,通过运行IEXPLORE.EXE 打开ie,由于不知道windows装在那个盘,所以遍历了很多。