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

  1. ,
    Expert tip

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

  2. ,

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

Solutions on the web

via gmane.org by Unknown author, 1 year ago
Cannot run program "sh" (in directory "C:\Windows\TEMP\hudson1319931143699600286test\workspace\pipeline5"): CreateProcess error=2, The system cannot find the file specified
via Software Quality Assurance & Testing by user3341382
, 9 months ago
Cannot run program "sh" (in directory "C:\Program Files (x86)\Jenkins\workspace\Motor Trade"): CreateProcess error=2, The system cannot find the file specified
via software-testing.ru by Unknown author, 1 year ago
Cannot run program "/bin/sh" (in directory "C:\Users\user\.jenkins\workspace\Session 22_0444 check close"): CreateProcess error=2, The system cannot find the file specified
via Google Groups by Lily Fu, 2 years ago
Cannot run program "sh" (in directory "C:\Users\lily.fu\.jenkins\jobs\LilyTest_LiquibaseDiff\workspace"): CreateProcess error=2, The system cannot find the file specified
via nabble.com by Unknown author, 2 years ago
Cannot run program "sh" (in directory "C:\Users\lily.fu\.jenkins\jobs\LilyTest_LiquibaseDiff\workspace"): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by Austin Chen
, 1 year ago
Cannot run program "sh" (in directory "D:\Application\Jenkins\workspace\downloader"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the file specified	at java.lang.ProcessImpl.create(Native Method)	at java.lang.ProcessImpl.(ProcessImpl.java:386)	at java.lang.ProcessImpl.start(ProcessImpl.java:137)	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)	at hudson.Proc$LocalProc.(Proc.java:240)	at hudson.Proc$LocalProc.(Proc.java:212)	at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)	at hudson.Launcher$ProcStarter.start(Launcher.java:381)	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)	at hudson.model.Build$BuildExecution.build(Build.java:205)	at hudson.model.Build$BuildExecution.doRun(Build.java:162)	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)	at hudson.model.Run.execute(Run.java:1738)	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)	at hudson.model.ResourceController.execute(ResourceController.java:98)	at hudson.model.Executor.run(Executor.java:410)