title: getting Java to work in Cygwin
body: <p>I just downloaded cygwin to run some java programs and i need to set up java.  I tried to download the standard linux packages and got the error <code>Cannot execute binary files</code></p>
  
  <p>After some research I figured I had to point it to my windows java folder, so I ran </p>
  
  <pre><code>export PATH=$PATH:"/cygdrive/C/Program Files (x86)/Java/jdk1.7.0_51/bin"
  </code></pre>
  
  <p>and it seems to work (java -version shows my java info).  However it seems to screw up my linux bash settings, afterwards I cant do basic stuff such as ls, sh, etc.  it gives command not found error and the only way is to change the PATH variable back to my cygwin folder.</p>
  
  <p>how can i get java "installed" in cygwin?</p>