nutch1.6安装和编译(linux环境下)

nutch1.6安装和编译(linux环境下)

准备阶段:

1、下载nutch1.6安装包:Nutch-1.6-src.tar.gz

http://www.linuxtourist.com/apache/nutch/1.6/

2、下载ant安装包并安装和配置:apache-ant-1.10.3-bin.tar.gz

https://blog.csdn.net/Y_FC_EMBEDD/article/details/80639513

安装nutch1.6

1、编译nutch1.6执行ant时出现以下错误:

[taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml.

原因:nutch1.6源码中缺少sonar-ant-task-2.1.jar

解决办法:

下载该jar包,放到nutch1.6目录下。下载地址是:

http://www.java2s.com/Code/Jar/s/Downloadsonaranttask21jar.htm

build.xml文件的826行的下面添加三行以下内容:

<classpath>

<fileset dir="." includes="sonar*.jar" />

</classpath>

修改后的文件如下:

<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">

<classpath path="${ant.library.dir}" />

<classpath path="${mysql.library.dir}" />

<classpath>

<fileset dir="." includes="sonar*.jar" />

</classpath>

</taskdef>

2、执行ant,需要等待较长时间,因为在下载jar包。

构建nutch工程完成有如下提示:

 

nutch1.6文件夹下会创建一个runtime文件夹。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值