当前位置: 代码迷 >> J2SE >> 执行Runtime.getRuntime().exec()时空间不足解决方法
  详细解决方案

执行Runtime.getRuntime().exec()时空间不足解决方法

热度:65   发布时间:2016-04-24 01:58:56.0
执行Runtime.getRuntime().exec()时空间不足
在linux环境中,当执行到
Process p = Runtime.getRuntime().exec(cmdArr);
时,打印如下错误:
java.io.IOException: Cannot run program "/opt/xxxx": java.io.IOException: error=12, Cannot allocate memory
有那位对linux环境比较熟悉的给点建议啊

------解决方案--------------------
http://stackoverflow.com/questions/1124771/how-to-solve-java-io-ioexception-error-12-cannot-allocate-memory-calling-runt

这个应该能解决问题
  相关解决方案