title: How can I set my Cygwin PATH to find javac?
body: <p>I have a Windows 7 system on which I have installed the latest Java compiler. I also have the latest Cygwin. I want to use the Java compiler from Cygwin's shell. I edited the PATH variable in Cygwin as follows:</p>
  
  <pre><code>export PATH=$PATH:"/cygdrive/C/Program\ Files/Java/jdk1.6.0_23/bin/"
  </code></pre>
  
  <p>I can see the <code>javac</code> binary in the above directory, however when I try to compile my *.java file I get:</p>
  
  <pre><code>javac command not found
  </code></pre>
  
  <p>Am I doing something wrong in setting the PATH variable like this? Do I have to do something else? I am new to Java and not very familiar with cygwin.</p>