Runtime.getRuntime().exec("你的shell");

解决方案 »

  1.   

    try{
      Runtime.getRuntime().exec("");
    }
    catch(RuntimeException re){
    }
      

  2.   

    如果我要写网络JSP程序,怎么能实现Runtime.getRuntime().exec(SHell)的功能呢???
    多谢!我急用!
      

  3.   

    你可以在jsp的首部import  java.lang.Runtime
    然后按楼上人的说法做就行了
      

  4.   

    带参数的Command怎么办??
    exec()中必须是.sh等文件吗?不可以直接就是Command吗?
      

  5.   

    I think that fine, I just tried.