java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory

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

,
Expert tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Solutions on the web

via JIRA by max putilov, 1 year ago
Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
via JIRA by max putilov, 1 year ago
Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
via grokbase.com by Unknown author, 2 years ago
Cannot run program "hive-0.9-test/workspace/testutils/hadoop" (in directory "hive-0.9-test/workspace/service"): java.io.IOException: error=13, Permission denied
via https://bugzilla.redhat.com/bugzilla/ by Pavol Srna, 1 year ago
Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
via Google Groups by Albin Carpentier, 2 years ago
Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
via GitHub by Geng-G-Razor
, 1 year ago
Cannot run program "ipfw": error=2, No such file or directory
java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
at java.lang.UNIXProcess.(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at jline.UnixTerminal.exec(UnixTerminal.java:292)
at jline.UnixTerminal.stty(UnixTerminal.java:268)
at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:71)
at jline.Terminal.setupTerminal(Terminal.java:75)
at jline.Terminal.getTerminal(Terminal.java:26)
at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:39)
at sbt.ConsoleLogger$.(ConsoleLogger.scala:34)
at sbt.ConsoleLogger$.(ConsoleLogger.scala)
at sbt.GlobalLogging$.initial(GlobalLogging.scala:24)
at sbt.StandardMain$.initialGlobalLogging(Main.scala:57)
at sbt.StandardMain$.initialState(Main.scala:54)
at sbt.xMain.run(Main.scala:26)
at xsbt.boot.Launch$.run(Launch.scala:55)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:69)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:31)
at xsbt.boot.Boot$.main(Boot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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