Runtime.getRuntime().exec("notepad.exe");

解决方案 »

  1.   

    Runtime.getRuntime.exec(explorer.exe);
      

  2.   

    有时间看看API,我也是看API的public class Call
    { public static void main(String[] args) 
    {
    try
    {
    Runtime rt=Runtime.getRuntime();
    Process p=rt.exec("notepad.exe");
    }
    catch(Exception e)
    {
    e.printStackTrace();
    }
    }
    }
      

  3.   

    注意windows本身的程序由于版本的高低也有差异,本人深受其害
      

  4.   

    1.调用操作系统自身提供的功能在获得方便的同时,也失去了java语言最大的优点:跨平台性
    2.各个版本的操作系统提供给用户调用的命令程序的参数和方式并不相同