日期:2014-5-17 浏览次数:20480次

xp下用nutch索引,cygdrive命令行报JDK路径错误?
我的所有环境变量如下

path

D:\Program Files\Java\jdk1.6.0_03\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

classpath
D:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;D:\Program Files\Java\jdk1.6.0_03\lib\dt.jar;.D:\lucene-2.4.0\lucene-demos-2.4.0.jar;D:\lucene-2.4.0\lucene-core-2.4.0.jar;

JAVA_HOME
D:\Program Files\Java\jdk1.6.0_03;

NUTCH_JAVA_HOME
D:\Program Files\Java\jdk1.6.0_03;

TOMCAT_HOME
D:\Program Files\apache-tomcat-6.0.13;

nutch版本为0.9,解压路径为D:\nutch-0.9
cygdrive在线安装路径为C:\cygwin
在cygdrive命令行/cygdrive/d/nutch-0.9路径下键入
bin/nutch crwal url -dir mydiy5 -depth 2 -topN 10

错误提示如下

bin/nutch: line 136: D:\Program Files\Java\jdk1.6.0_03;/bin/java: No such file o
r directory
bin/nutch: line 229: D:\Program Files\Java\jdk1.6.0_03;/bin/java: No such file o
r directory
bin/nutch: line 229: exec: D:\Program Files\Java\jdk1.6.0_03;/bin/java: cannot e
xecute: No such file or directory

郁闷一天啦,不知道错在哪,export JAVA_HOME="D:\Program Files\Java\jdk1.6.0_03"也用过啦,各们在window下用过nutch的给看看什么原因?


------解决方案--------------------
你先试下能不能运行java文件.