title: Can I open a git bash terminal in specific folder using java
body: <p>I want to open the git bash terminal in a specific folder and inside the folder have some .sh &amp; .bat files. And I want to open a .sh file inside the terminal. is it possible in java, if it is possible how can I do that.
  I have tried this way</p>
  <pre><code>        ProcessBuilder processBuild = new ProcessBuilder(&quot;zeen.sh&quot;);
          processBuild.directory(new File(&quot;E:\\iltTests\\zeen&quot;));
         try {
             
              Process p= processBuild.start();
              int exitCode = p.waitFor();
              System.out.println(&quot;\nEXitted with error code: &quot; + exitCode);          
        } catch (IOException ex) {
              Logger.getLogger(sampZui.class.getName()).log(Level.SEVERE, null, ex);
          } catch (InterruptedException ex) {
              Logger.getLogger(sampZui.class.getName()).log(Level.SEVERE, null, ex);
          } 
  </code></pre>
  <p>This is my code</p>
  <p><code>java.io.IOException: Cannot run program &quot;zeen.sh&quot; (in directory &quot;E:\iltTests\zeen&quot;): CreateProcess error=2, The system cannot find the file specified</code>
  and I got this error</p>