Nutch-Cygwin 如何设置JAVA_HOME
我正在尝试使用 Cygwin 运行 Nutch。我在设置 JAVA_HOME 时遇到问题。
$ export JAVA_HOME='/cygdrive/f/program files/java/jdk1.6.0_21'
当我运行 nutch 命令时
$ bin/nutch crawl
,我发现
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
程序和文件之间的空格导致了问题 /cygdrive/f/**program files**/java/jdk1.6.0_21
有没有办法让我可以逃离空间吗?有更好的方法吗?谢谢
编辑
在一天结束时,我不得不在另一个目录中重新安装 java,并且名称中没有空格。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在以下位置使用双引号:
以及脚本使用 JAVA_HOME 变量的位置,例如:
问候
Try to use double quotes in:
and wherever the script uses the JAVA_HOME variable, for example:
Regards