java.io.IOException: Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory

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

,

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

,
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

, 9 months ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory
, 9 months ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory
via Jenkins JIRA by Navin I, 1 year ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory
via Jenkins JIRA by Navin I, 1 year ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory
via Stack Overflow by ShatyUT
, 1 year ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Journeyman-Android"): error=2, No such file or directory
via jenkins-ci.org by Unknown author, 7 months ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory
java.io.IOException: Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at hudson.Proc$LocalProc.(Proc.java:245)
at hudson.Proc$LocalProc.(Proc.java:214)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)
at hudson.Launcher$ProcStarter.start(Launcher.java:384)
at hudson.Launcher$ProcStarter.join(Launcher.java:395)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:314)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:190)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1728)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)

Users with the same issue

2 times, 1 week ago
Once, 2 weeks ago
Once, 1 month ago
15 times, 1 month ago
6 times, 2 months ago

Write tip

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