java.io.IOException: Cannot run program "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): java.io.IOException: error=2, No such file or directory

JFrog JIRA | Martin Ehrnhoefer | 5 years ago
  1. 0

    Setup: - Jenkins installation with one slave node (both running Linux). The JAVA_HOME directory differs on the slave, but is correctly configured in Jenkins - A Jenkins "free style" job with an "Invoke Maven 3" build step that is bound to the slave node Problem: The job is executed on the slave node, but the plugin tries to call Java with the master's path. Console output: <snip> Artifactory integration is enabled [gitflow_continuous] $ /daten/storage1/jenkins/tools/JDK_1.6.22/bin/java -classpath /var/lib/jenkins/tools/Maven_for_jump_v3.0.3/boot/plexus-classworlds-2.4.jar -Dmaven.home=/var/lib/jenkins/tools/Maven_for_jump_v3.0.3 -DbuildInfoConfig.propertiesFile=/tmp/buildInfo3734338271409206278.properties -Dm3plugin.lib=/var/lib/jenkins-slave/workspace/artifactory-plugin/2.0.7 -Dclassworlds.conf=/tmp/classworlds5780655426972477656conf org.codehaus.plexus.classworlds.launcher.Launcher -f streamserver-api/pom.xml clean package source:jar FATAL: command execution failed java.io.IOException: Cannot run program "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) <snip>

    JFrog JIRA | 5 years ago | Martin Ehrnhoefer
    java.io.IOException: Cannot run program "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): java.io.IOException: error=2, No such file or directory
  2. 0

    Setup: - Jenkins installation with one slave node (both running Linux). The JAVA_HOME directory differs on the slave, but is correctly configured in Jenkins - A Jenkins "free style" job with an "Invoke Maven 3" build step that is bound to the slave node Problem: The job is executed on the slave node, but the plugin tries to call Java with the master's path. Console output: <snip> Artifactory integration is enabled [gitflow_continuous] $ /daten/storage1/jenkins/tools/JDK_1.6.22/bin/java -classpath /var/lib/jenkins/tools/Maven_for_jump_v3.0.3/boot/plexus-classworlds-2.4.jar -Dmaven.home=/var/lib/jenkins/tools/Maven_for_jump_v3.0.3 -DbuildInfoConfig.propertiesFile=/tmp/buildInfo3734338271409206278.properties -Dm3plugin.lib=/var/lib/jenkins-slave/workspace/artifactory-plugin/2.0.7 -Dclassworlds.conf=/tmp/classworlds5780655426972477656conf org.codehaus.plexus.classworlds.launcher.Launcher -f streamserver-api/pom.xml clean package source:jar FATAL: command execution failed java.io.IOException: Cannot run program "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) <snip>

    JFrog JIRA | 5 years ago | Martin Ehrnhoefer
    java.io.IOException: Cannot run program "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): java.io.IOException: error=2, No such file or directory
  3. 0

    ClearCase Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    java.io.IOException: java.io.IOException: Too many open files
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to execute application (unit test) in matrix build?

    Google Groups | 3 years ago | cscooper
    java.io.IOException: Cannot run program "AllTests" (in directory "/Users/Shared..blahblah"): error=2, No such file or directory
  6. 0

    Jenkins & NodeJS plugin - Permission Denied error

    Stack Overflow | 2 years ago | Dualcyclone
    java.io.IOException: Cannot run program "/tmp/hudson1009495610900642950.js" (in directory "/var/lib/jenkins/jobs/Test Project/workspace"): error=13, Permission denied

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 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 "/daten/storage1/jenkins/tools/JDK_1.6.22/bin/java" (in directory "/var/lib/jenkins-slave/workspace/gitflow_continuous"): 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$LocalLauncher.launch
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
    3 frames