我做的程序要运行客户端的ie来连接我公司的网站,应该怎么获得.谢谢!

解决方案 »

  1.   

    不需要路径,直接程序名iexplore.exe应该就行了
      

  2.   

    Runtime runtime = Runtime.getRuntime();
    try{
    runtime.exec("iexplore.exe  http://www.csdn.net");
    }catch(java.io.IOException ioe){ioe.printStackTrace();}
    这样写对么?
      

  3.   

    Runtime runtime = Runtime.getRuntime();
    try{
    runtime.exec("C:\\Program Files\\Internet Explorer\\iexplore.exe  http://www.baidu.com");
    }catch(java.io.IOException ioe){ioe.printStackTrace();
    这样写就没错了,我想获得iexplore.exe在客户端的路径,从而打开.不知有什么方法么?