title: Running bash file from Java is not working
body: <pre><code>try{
  
          //String[] cmd = new String[]{"/bin/sh", "send.sh"};
          //Process pr = Runtime.getRuntime().exec(cmd);  //nothing happens           
          //Process p = Runtime.getRuntime().exec("send.sh"); //File not found
          //Process p = Runtime.getRuntime().exec("bash send.sh"); //nothing happens
  
          // ProcessBuilder pb = new ProcessBuilder("bash","send.sh");
          // Process p = pb.start(); //nothing happens
  
      }
      catch(Throwable t)
      {
          t.printStackTrace();
      }
  </code></pre>
  
  <p>With this code I am trying to start a simple bash file which is located in the directory of the program. The code of the bash file works when I start it with shell or by simply executing it. The code of the bash file works.</p>
  
  <p>I've tried every option but they are all not working. I've commented what happens in each case. I don't understand that it don't find the file because the bash file is located in the same directory.</p>