java.io.IOException: Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory

Jenkins JIRA | dmatag | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I get this issue when i run a job into a slave. JAVA_HOME, java path and PATH are set. Jenkins connects to this slave by ssh with password. 21:31:41 no change for https://murgi.larural.es:800/corebanking/framework/ext-libs/trunk since the previous build 21:31:41 [ext-libs] $ /bin/sh -xe /tmp/hudson4719096548760543199.sh 21:31:41 + java -jar /cis/jenkins/software/analizepom.jar pom.xml CHECK-SNAPSHOT 21:31:42 Parsing POMs 21:31:43 [ext-libs] $ java -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dm3plugin.lib=/shared/cis/slavejenkins/workspace/artifactory-plugin/2.0.7 -cp /shared/cis/slavejenkins/maven3-agent.jar:/shared/cis/maven/maven/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /shared/cis/maven/maven /tmp/test_slave_jenkins/slave.jar /shared/cis/slavejenkins/maven3-interceptor.jar 39207 21:31:43 ERROR: Failed to parse POMs 21:31:43 java.io.IOException: Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory 21:31:43 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 21:31:43 at hudson.Proc$LocalProc.<init>(Proc.java:244) 21:31:43 at hudson.Proc$LocalProc.<init>(Proc.java:216) 21:31:43 at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) 21:31:43 at hudson.Launcher$ProcStarter.start(Launcher.java:338) 21:31:43 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) 21:31:43 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) 21:31:43 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 21:31:43 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 21:31:43 at hudson.remoting.Request$2.run(Request.java:287) 21:31:43 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 21:31:43 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 21:31:43 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 21:31:43 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 21:31:43 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 21:31:43 at java.lang.Thread.run(Thread.java:662)

    Jenkins JIRA | 5 years ago | dmatag
    java.io.IOException: Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory
  2. 0

    I get this issue when i run a job into a slave. JAVA_HOME, java path and PATH are set. Jenkins connects to this slave by ssh with password. 21:31:41 no change for https://murgi.larural.es:800/corebanking/framework/ext-libs/trunk since the previous build 21:31:41 [ext-libs] $ /bin/sh -xe /tmp/hudson4719096548760543199.sh 21:31:41 + java -jar /cis/jenkins/software/analizepom.jar pom.xml CHECK-SNAPSHOT 21:31:42 Parsing POMs 21:31:43 [ext-libs] $ java -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dm3plugin.lib=/shared/cis/slavejenkins/workspace/artifactory-plugin/2.0.7 -cp /shared/cis/slavejenkins/maven3-agent.jar:/shared/cis/maven/maven/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /shared/cis/maven/maven /tmp/test_slave_jenkins/slave.jar /shared/cis/slavejenkins/maven3-interceptor.jar 39207 21:31:43 ERROR: Failed to parse POMs 21:31:43 java.io.IOException: Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory 21:31:43 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 21:31:43 at hudson.Proc$LocalProc.<init>(Proc.java:244) 21:31:43 at hudson.Proc$LocalProc.<init>(Proc.java:216) 21:31:43 at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) 21:31:43 at hudson.Launcher$ProcStarter.start(Launcher.java:338) 21:31:43 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) 21:31:43 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) 21:31:43 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 21:31:43 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 21:31:43 at hudson.remoting.Request$2.run(Request.java:287) 21:31:43 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 21:31:43 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 21:31:43 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 21:31:43 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 21:31:43 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 21:31:43 at java.lang.Thread.run(Thread.java:662)

    Jenkins JIRA | 5 years ago | dmatag
    java.io.IOException: Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory
  3. 0

    'docker build' fails on Linux Jenkins slave with jenkins 1.590

    GitHub | 2 years ago | gcarre
    java.io.IOException: Cannot run program "docker" (in directory "\home\jenkins\jenkins\workspace\gcarre\docker"): error=2, No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    problems with hg plugin

    Google Groups | 5 years ago | Matt Fair
    java.io.IOException: Cannot run program "hg" (in directory "...."): error=2, No such file or directory
  6. 0

    [JENKINS-24788] Cannot run program "/bin/java" on maven 3 projects - Jenkins JIRA

    jenkins-ci.org | 11 months ago
    java.io.IOException: Cannot run program "/bin/java" (in directory "/shn/builder/workspace/build-shnproxy-trunk"): java.io.IOException: error=2, No such file or directory

  1. zbalint 16 times, last 3 days ago
  2. rp 1 times, last 5 months ago
  3. michallos 1 times, last 6 months ago
  4. eti22 1 times, last 7 months ago
  5. asdasd 24 times, last 8 months ago
3 more registered users
92 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Cannot run program "java" (in directory "/shared/cis/slavejenkins/workspace/ext-libs"): java.io.IOException: error=2, No such file or directory

    at java.lang.ProcessBuilder.start()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    1 frame
  3. Hudson
    Launcher$RemoteLaunchCallable.call
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:338)
    5. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901)
    6 frames
  4. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:287)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    5. java.lang.Thread.run(Thread.java:662)
    5 frames