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.

Solutions on the web

via Jenkins JIRA by cowwoc, 1 year ago
Cannot run program "/usr/local/bin/hg": CreateProcess error=2, The system cannot find the file specified
via Jenkins JIRA by cowwoc, 1 year ago
Cannot run program "/usr/local/bin/hg": CreateProcess error=2, The system cannot find the file specified
via Jenkins JIRA by Denis Blanchette, 1 year ago
Cannot run program "hg" (in directory "E:\Jenkins\hgcache\9CA7E02F6ED4A8D206CE322F399223700FF8A095-PRODUCT"): CreateProcess error=87, The parameter is incorrect
via Jenkins JIRA by Denis Blanchette, 1 year ago
Cannot run program "hg" (in directory "E:\Jenkins\hgcache\9CA7E02F6ED4A8D206CE322F399223700FF8A095-PRODUCT"): CreateProcess error=87, The parameter is incorrect
via Stack Overflow by Teo Klestrup Röijezon
, 2 years ago
Cannot run program "hg" (in directory "/var/lib/jenkins/workspace/My-Repository"): java.io.IOException: error=2, No such file or directory
via Jenkins JIRA by Vladimir Grichina, 1 year ago
Cannot run program "hg": error=2, No such file or directory
java.io.IOException: Cannot run program "/usr/local/bin/hg": 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 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)

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.