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


Samebug tips

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


8 months ago
Expert tip

Solutions on the web

Solution icon of github
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory

Solution icon of github
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=2, No such file or directory

Solution icon of jenkins
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

Solution icon of stackoverflow
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Journeyman-Android"): error=2, No such file or directory

Solution icon of web
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory

Solution icon of jenkins
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

Solution icon of github
Cannot run program "/var/lib/jenkins/workspace/Base Metals/gradlew" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=13, Permission denied

Solution icon of web
Cannot run program "/ var /lib/jenkins/jobs/Ab2edemo/workspace/gradlew" (in directory "/ var /lib/jenkins/jobs/Ab2edemo/workspace/Ab2edemo" ): error=2, No such file or directory

Solution icon of stackoverflow
via Stack Overflow by Asif
, 1 year ago
Cannot run program "/root/.jenkins/workspace/NestedWorkspace/gradlew" (in directory "/root/.jenkins/workspace/NestedWorkspace"): error=2, No such file or directory

Solution icon of github
via GitHub by atomi
, 1 year ago
Cannot run program "/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1/bin/gradle" (in directory "/var/jenkins_home/jobs/mustash/workspace"): error=13, Permission denied

Stack trace

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.ProcessBuilder.start(ProcessBuilder.java:1048)
	at hudson.Proc$LocalProc.<init>(Proc.java:245)
	at hudson.Proc$LocalProc.<init>(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)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 16 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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
153 more bugmates