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 Google Groups by Ron, 2 years ago
Cannot run program "hg" (in directory "c:\jenkins\workspace\Sonar"): CreateProcess error=267, The directory name is invalid
via nabble.com by Unknown author, 2 years ago
Cannot run program "cmd" (in directory "C:\hudson\jobs\CI_WIN9\workspace"): CreateProcess error=267, The directory name is invalid
via jenkins-ci.org by Unknown author, 1 year ago
Cannot run program "cmd" (in directory "/some/path/on/slave"): CreateProcess error=267, The directory name is invalid
via JFrog JIRA by Nadav Cohen, 2 years ago
Cannot run program "/usr/java/jdk1.6.0_22/bin/java.exe" (in directory "c:\hudson\workspace\trunk-installer-4am\sources"): CreateProcess error=2, The system cannot find the file specified
via Jenkins JIRA by sauravsengupta, 1 year ago
Cannot run program "/bin/bash" (in directory "C:\Hudson\workspace\spectrum_tap2"): CreateProcess error=3, The system cannot find the path specified
via Jenkins JIRA by sauravsengupta, 1 year ago
Cannot run program "/bin/bash" (in directory "C:\Hudson\workspace\spectrum_tap2"): CreateProcess error=3, The system cannot find the path specified
java.io.IOException: CreateProcess error=267, The directory
name is invalid	at java.lang.ProcessImpl.create(Native Method)	at java.lang.ProcessImpl.(Unknown Source)	at java.lang.ProcessImpl.start(Unknown Source)	at java.lang.ProcessBuilder.start(Unknown Source)	at hudson.Proc$LocalProc.(Proc.java:244)	at hudson.Proc$LocalProc.(Proc.java:216)	at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)	at hudson.Launcher$ProcStarter.start(Launcher.java:329)	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:923)	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:890)	at hudson.remoting.UserRequest.perform(UserRequest.java:118)	at hudson.remoting.UserRequest.perform(UserRequest.java:48)	at hudson.remoting.Request$2.run(Request.java:287)	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)	at java.util.concurrent.FutureTask.run(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at hudson.remoting.Engine$1$1.run(Engine.java:60)	at java.lang.Thread.run(Unknown Source)