java.io.IOException: Cannot run program "videostore": java.io.IOException: error=24, Too many open files
Javadoc says:
The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.
Secondly, waitFor()
your process to terminate. You then should close the input, output and error streams.
Finally destroy()
your Process.
Process proc=null;
try {
ProcessBuilder pb = new ProcessBuilder(params);
pb.redirectErrorStream(true);
proc = pb.start();
proc.waitFor();
} catch (Exception e) {
log.error("QtStore: ",e);
return;
}finally{
if(proc!=null) //关闭输入输出流,释放内存
proc.destroy();
}
分享到:
相关推荐
网友分享的能够解决fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory问题的程序。MySQL-python-1.2.3.win32-py2.7.exe-32位MySQL-python-1.2.3.win-amd64-py...
有时候会碰到cuda报错,OSError: libcudart.so.10.0: cannot open shared object file: No such file 原因是cuda动态链接库没有链接上。 解决方法如下: cuda10.0: sudo ldconfig /usr/local/cuda-10.0/lib64 cuda...
genymotion免费个人版并没有提供 reg.exe 文件, Eclipse调用 genymotion 时会报错:Exception (VBoxManage): java.io.IOException: Cannot run program "C:\Program Files\Genymobile\Genymotion\/reg": ...
eclipse develop hadoop chmod :Cannot run program "chmod": CreateProcess error=2, ?????????-附件资源
fatal error C1083: Cannot open include file: 'io.h': No such file or directory
Eclipse 进行 ANT 时错误 Javadoc failed java.io.IOException Cannot run program javadoc
OS error code 23: Too many open files in system 操作系统错误代码23:打开太多的文件系统 OS error code 24: Too many open files 操作系统错误代码24:打开的文件太多 OS error code 25: Inappropriate ioctl ...
genymotion 2.5.4 模拟器 的free 版 没有提供 reg.exe 文件, 所以 Eclipse 要调用 genymotion 时 会报类似 Exception (VBoxManage): java.io.IOException: Cannot run program "C:\Program Files\Genymobile\...
ffmpeg-0.10.3 最新版本 多媒体
-bash: mysqldump: command not found问题解决
ulimit -n 这个数字说明了一个普通用户能够在一个单独会话中所能打开最大的文件数目。注意。如果是root,以下操作不能使ulimit -n的输出增加。因为用户root用户不受这个ulimit限制。只有普通用户才会受这个限制。
主要介绍了vsftpd登陆错误: 500 OOPS: cannot locate user entry:vsftpd问题的解决办法,需要的朋友可以参考下
异常:Caused by: java.lang.IllegalStateException: Method has too many Body parameters Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract ...
有时候非安装版的VC++6.0会出现'streambuf': No such file or directory的问题 原因在于你的库函数少了,下载这个文件将其放到 (你的安装目录)\VC98\INCLUDE,比如某人...将那三个文件放到上面指定目录后就不会出错了
Exception (VBoxManage): java.io.IOException: Cannot runprogram "D:\SoftwareInstall\Genymotion\/reg": CreateProcesserror=2 将文件解压放到安装目录解决eclipse或者Android Studio不能启动genymotion的问题
无界面浏览器 爬虫使用的无界面浏览器 爬虫使用的无界面浏览器 爬虫使用的无界面浏览器 爬虫使用的无界面浏览器 爬虫使用的无界面浏览器 爬虫使用的
bedGraphToBigWig: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 就将使用root用户,将这两个文件放到/usr/lib64/ 或则使用: ln -s /usr/...
开源包 博文链接:https://ben-sin.iteye.com/blog/190247
Python安装MySQL文件,EXE文件 ..._mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory 原来还是驱动问题,不管mysql的事。 希望该安装包对你有所帮助~
atal error C1083: Cannot open include file: 'streambuf': No such file or directory Error executing cl.exe. 1.软件打开界面-工具-选项,点击选项,弹出对话框,确认WIN32平台 对话框右边 显示目录中的...