title: Nutch-Cygwin How to set JAVA_HOME
body: <p>i am trying to run Nutch with Cygwin. I am having problems setting the JAVA_HOME.</p>
  
  <pre><code> $ export JAVA_HOME='/cygdrive/f/program files/java/jdk1.6.0_21'
  </code></pre>
  
  <p>When i run nutch command</p>
  
  <pre><code>$ bin/nutch crawl
  </code></pre>
  
  <p>i get</p>
  
  <pre><code>cygpath: can't convert empty path
  bin/nutch: line 268: /cygdrive/f/program: No such file or directory
  bin/nutch: line 268: exec: /cygdrive/f/program: cannot execute: No such file or directory
  </code></pre>
  
  <p>It appears that the space between program and files causes the problem <code>/cygdrive/f/**program files**/java/jdk1.6.0_21</code></p>
  
  <p>Is there a way that i can escape the space? Is there a better way to do this? Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>At the end of the day, i had to re-install java in another directory with no space in its name. </p>