java.io.IOException: Cannot run program "/usr/local/bin/hg": 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 Jenkins JIRA by cowwoc, 1 year ago
via Jenkins JIRA by cowwoc, 1 year ago
via Jenkins JIRA by Denis Blanchette, 1 year ago
via Jenkins JIRA by Denis Blanchette, 1 year ago
via Stack Overflow by Teo Klestrup Röijezon
, 2 years agovia Jenkins JIRA by Vladimir Grichina, 1 year ago
java.io.IOException: CreateProcess error=2, The system cannot find the file specified
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:709)
at hudson.Launcher$ProcStarter.start(Launcher.java:338)
at hudson.Launcher$ProcStarter.join(Launcher.java:345)
at hudson.plugins.mercurial.MercurialSCM.joinWithPossibleTimeout(MercurialSCM.java:309)
at hudson.plugins.mercurial.Cache.repositoryCache(Cache.java:103)
at hudson.plugins.mercurial.MercurialSCM.cachedSource(MercurialSCM.java:687)
at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:558)
at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:390)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1502)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)