试一下把java的虚拟机参数中内存弄大一点。

解决方案 »

  1.   

    可是上面不用process.waitfor()就可以啊???
      

  2.   

    谢谢 qlampskyface(天空的样子) 同样的帖子,说明的更详细些:
    http://community.csdn.net/Expert/topic/3165/3165480.xml?temp=.966839
      

  3.   

    我碰到的问题更神奇:
      String commandStr = "rcp -r /opt/wap/test1/system-config [email protected]:/opt/wap/test1/";
    System.out.println(commandStr);
      Runtime.getRuntime().exec(commandStr);
    就可以运行

      String commandStr = "rcp -r /opt/wap/test1/* [email protected]:/opt/wap/test1/";
    System.out.println(commandStr);
      Runtime.getRuntime().exec(commandStr);
    就不行。
    两句在hp-ux 下用shell运行一点问题也没有,真是见鬼了。
      

  4.   

    我估计是commandStr中不能用“*“这个通配符
      

  5.   

    http://community.csdn.net/Expert/topic/3225/3225349.xml?temp=.5409662
    看看上面这个,解决了