java.io.IOException

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


Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web23344

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 stackoverflow
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Journeyman-Android"): 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 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 web
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/unite/workspace"): error=2, No such file or directory

Solution icon of stackoverflow
via Stack Overflow by eldad levy
, 1 year ago
Cannot run program "gradle" (in directory "/var/jenkins/workspace/dadi"): java.io.IOException: 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
via nabble.com by Unknown author, 1 year ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/GeometryEditor/workspace/CommonsPlugin"): java.io.IOException: error=2, No such file or directory

Solution icon of stackoverflow
Cannot run program "mvn" (in directory "/var/lib/jenkins /jobs/selenium/workspace"): java.io.IOException: error=2, No such file or directory

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