title: Lauching Cygwin terminal from a JAVA program
body: <p>I am working on Windows and I have downloaded cygwin.
  I want to launch the cygwin terminal from a java program but I can't find the command so I can launch the terminal and then write line command into it.</p>
  
  <p>When I go to the cygwin Terminal icon parameters, I can see this : </p>
  
  <pre><code>target: C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
  </code></pre>
  
  <p>But when I use this to launch the terminal on my program:</p>
  
  <pre><code>ProcessBuilder pb = new ProcessBuilder("C:\\cygwin64\\bin\\mintty.exe", "cd Documents");
  </code></pre>
  
  <p>I have a shell that opens wit this :</p>
  
  <pre><code>cd Documents: No such file or directory
  </code></pre>
  
  <p>I think that my problem is that I launch the wrong cygwin terminal but I can't find where is the right Cygwin terminal.</p>
  
  <p>Does anyone knows where is the right cygwin terminal so I can write line commands in my java program and the temrinal will understand them ?</p>