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.