http://expert.csdn.net/Expert/topic/1122/1122963.xml?temp=2.230471E-02

解决方案 »

  1.   

    Runtime r=Runtime.getInstance();
    Process p=r.exec("notepad.exe"); //for example
    ....
      

  2.   

    不好意思,我给了你一个错误的建议,却被给分,无地自容呀!Runtime r=Runtime.getRuntime();
    Process p=r.exec("notepad.exe");
    ...
    .... p.getInputStream();
    ....p.getOutputStream();这样才好。
      

  3.   

    不好意思,我给了你一个错误的建议,却被给分,无地自容呀!Runtime r=Runtime.getRuntime();
    Process p=r.exec("notepad.exe");
    ...
    .... p.getInputStream();
    ....p.getOutputStream();这样才好。