title: execute bash script from java
body: <p>I am trying to execute a bash script file , for a java program it the following way : </p>
  
  <pre><code>Runtime.getRuntime().exec("./path/to/bash"); 
  </code></pre>
  
  <p>But it seems to be not the correct way for doing it because it return the following exception: </p>
  
  <pre><code> java.io.IOException: Cannot run program "./path/to/bash": error=2, No such file or directory
  </code></pre>
  
  <p>what is the correct way to do it ? </p>