title: Execute a command using ProcessBuilder from windows
body: <p>I am getting the following error when i try to execute the below line from my java program on windows machine.</p>
  
  <p>Could you please let me know the detailed steps to make that work?</p>
  
  <pre><code>final Process exec = new ProcessBuilder("bash", "-c", query).start();
  </code></pre>
  
  <blockquote>
    <p>error : java.io.IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified</p>
  </blockquote>