title: Jenkins ERROR: Failed to parse POMs java.io.IOException: Cannot run program error=2, No such file or directory
body: <p>In jenkins I am forcing the execution to happen in one of the slaves.
  in jenkins configuration I have updated the JAVA_HOME and MAVEN location to the location where its installed in the slave. When I start the build in jenkins I receive the following error</p>
  
  <pre><code>ERROR: Failed to parse POMs
  java.io.IOException: Cannot run program "/home/jmeter/jdk1.8.0_112/bin/java" (in directory "/home/jmeter/apache-jmeter-2.13/bin/workspace/MyProject"): error=2, No such file or directory
  </code></pre>
  
  <p>PS : /home/jmeter/apache-jmeter-2.13/bin/workspace/MyProject - This directory got created and does exist in the slave machine</p>
  
  <p>Can someone please share their expertise in resolving it ? </p>