title: Unable to execute shell script on slave with Jenkins
body: <p>I am attempting to run JUnit tests on a slave via Jenkins. Configuration of the slave was successful and the master seems to recognize the slave's workspace but is unable to execute the java command via the "Execute Shell" under Build. There is no pulling down code from source control and so no builds. This is a job intended to just run a test on the slave.</p>
  
  <pre><code>Building remotely on qa-slave in workspace /home/ubuntu/Desktop
  [Desktop] $ /bin/sh -xe /tmp/hudson2639231287347256677.sh
  + ./run.sh
  Error: Could not find or load main class org.junit.runner.JUnitCore
  Build step 'Execute shell' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>I get the same error if I replace run.sh with</p>
  
  <pre><code>java org.junit.runner.JUnitCore OneGateTesting.TestSuiteRunner
  </code></pre>
  
  <p>I am able to run this locally on the slave.</p>