java.io.IOException: Cannot run program "sh": error=24, Too many open files

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
Expert tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Solutions on the web

via GitHub by inklit
, 1 year ago
Cannot run program "sh": error=24, Too many open files
via Stack Overflow by Bernie Perez
, 2 years ago
Cannot run program "../ccnd/agent/ccnd": error=2, No such file or directory
via GitHub by adam-law
, 4 months ago
Cannot run program "ifconfig": CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by Shubham Khandelwal
, 4 months ago
Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified
via Oracle Community by 523441, 1 year ago
Cannot run program "sh": java.io.IOException: error=2, No such file or directory
via GitHub by yoavst
, 2 years ago
Cannot run program "ndisasm": CreateProcess error=2, The sy stem cannot find the file specified
java.io.IOException: error=24, Too many open files
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at jline.internal.TerminalLineSettings.exec(TerminalLineSettings.java:308)
at jline.internal.TerminalLineSettings.stty(TerminalLineSettings.java:282)
at jline.internal.TerminalLineSettings.undef(TerminalLineSettings.java:158)
at jline.UnixTerminal.disableLitteralNextCharacter(UnixTerminal.java:185)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2448)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2372)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2360)
at net.minecraftforge.server.console.TerminalHandler.handleCommands(TerminalHandler.java:36)

Users with the same issue

2 times, 1 month ago
Once, 1 month ago
Once, 2 months ago
15 times, 3 months ago
6 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.