title: Apache Commons Exec: executable not in PATH
body: <p>How do I execute a program which is NOT on the system PATH (and I don't want to put it there)? Eg. the simplest example:</p>
  
  <pre><code>String program = "/my/path/to/my/program";
  new DefaultExecutor().execute(CommandLine.parse(program));
  </code></pre>
  
  <p>throws</p>
  
  <pre><code>java.io.IOException: Cannot run program "/my/path/to/my/program" (in directory ".")
  </code></pre>
  
  <p>(The same is true with programs on the PATH, eg. "/usr/bin/ls" fails with the same message.)</p>
  
  <p>Note: I do not want to change the working directory.</p>