i am trying to run Nutch with Cygwin. I am having problems setting the JAVA_HOME.
$ export JAVA_HOME='/cygdrive/f/program files/java/jdk1.6.0_21'
When i run nutch command
$ bin/nutch crawl
i get
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
It appears that the space between program and files causes the problem /cygdrive/f/**program files**/java/jdk1.6.0_21
Is there a way that i can escape the space? Is there a better way to do this? Thanks
EDIT
At the end of the day, i had to re-install java in another directory with no space in its name.
Try to use double quotes in:
export JAVA_HOME="/cygdrive/f/program files/java/jdk1.6.0_21"
and wherever the script uses the JAVA_HOME variable, for example:
JAVA="$JAVA_HOME"/bin/java
Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With