java.io.IOException: Cannot run program "/usr/local/bin/bash": CreateProcess error=2, The system cannot find the file specified

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

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

,

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

Solutions on the web

via apache.org by Unknown author, 1 year ago
Cannot run program "/usr/local/bin/bash": CreateProcess error=2, The system cannot find the file specified
via Google Groups by r...@orange.fr (JIRA), 1 year ago
Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified
via GitHub by excaliburHisSheath
, 2 years ago
Cannot run program "/bin/bash" (in directory "C:\Users\excaliburhissheath\workspace\rusty_window"): CreateProcess error=2, The system cannot find the file specified
via Oracle Community by rlgura, 1 year ago
Cannot run program "C:\program": CreateProcess error=2, The system cannot find the file specified
via Google Groups by papu bhattacharya, 7 months ago
Cannot run program > > "chmod": CreateProcess error=2, The system cannot find the file > > specified
via Stack Overflow by Shannin
, 1 year ago
Cannot run program "gpg": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "/usr/local/bin/bash": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at com.cloud.utils.script.Script.execute(Script.java:184)

Users with the same issue

Once, 4 months ago
Once, 6 months ago
6 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago

Write tip

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