java.io.IOException: Cannot run program "chmod": java.io.IOException: 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

,
Expert tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Solutions on the web

via Jenkins JIRA by Angela Johansson, 1 year ago
Cannot run program "chmod": java.io.IOException: error=2, No such file or directory
via Jenkins JIRA by Angela Johansson, 1 year ago
Cannot run program "chmod": java.io.IOException: error=2, No such file or directory
via GitHub by rultor
, 2 months ago
Cannot run program "xcop": error=2, No such file or directory
via GitHub by rultor
, 1 month ago
Cannot run program "xcop": error=2, No such file or directory
via GitHub by rultor
, 1 month ago
Cannot run program "xcop": error=2, No such file or directory
java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635)
at org.apache.tools.ant.taskdefs.ExecuteOn.runParallel(ExecuteOn.java:711)
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:479)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
at hudson.FilePath._chmodAnt(FilePath.java:1119)
at hudson.FilePath._chmod(FilePath.java:1104)
at hudson.FilePath.readFromTar(FilePath.java:1644)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1566)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
at hudson.model.Run.run(Run.java:1400)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 days ago
Once, 2 weeks ago
92 more bugmates

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