Hi Lixiang, Please go through following link
http://nlp.solutions.asia/?p=362 Hope it will solve your problem. On Fri, Oct 31, 2014 at 7:48 AM, Lixiang Ao <[email protected]> wrote: > HI all, > > I'm a beginner of Nutch and I just followed the instructions here > http://wiki.apache.org/nutch/Nutch2Tutorial, but I got the following > errors: > > > aolixiang@lbt:~/IdeaProjects/dwc/nutch$ ant runtime > Buildfile: /home/aolixiang/IdeaProjects/dwc/nutch/build.xml > Trying to override old definition of task javac > [taskdef] Could not load definitions from resource > org/sonar/ant/antlib.xml. It could not be found. > > ivy-probe-antlib: > > ivy-download: > [taskdef] Could not load definitions from resource > org/sonar/ant/antlib.xml. It could not be found. > > ivy-download-unchecked: > > ivy-init-antlib: > > ivy-init: > > init: > [mkdir] Created dir: /home/aolixiang/IdeaProjects/dwc/nutch/build > [mkdir] Created dir: > /home/aolixiang/IdeaProjects/dwc/nutch/build/classes > [mkdir] Created dir: > /home/aolixiang/IdeaProjects/dwc/nutch/build/release > [mkdir] Created dir: /home/aolixiang/IdeaProjects/dwc/nutch/build/test > [mkdir] Created dir: > /home/aolixiang/IdeaProjects/dwc/nutch/build/test/classes > > clean-lib: > > resolve-default: > [ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ > :: > [ivy:resolve] :: loading settings :: file = > /home/aolixiang/IdeaProjects/dwc/nutch/ivy/ivysettings.xml > [taskdef] Could not load definitions from resource > org/sonar/ant/antlib.xml. It could not be found. > > copy-libs: > > compile-core: > [javac] Compiling 180 source files to > /home/aolixiang/IdeaProjects/dwc/nutch/build/classes > [javac] warning: [options] bootstrap class path not set in conjunction > with -source 1.6 > [javac] > > /home/aolixiang/IdeaProjects/dwc/nutch/src/java/org/apache/nutch/storage/WebPage.java:28: > error: cannot find symbol > [javac] import org.apache.avro.ipc.AvroRemoteException; > [javac] ^ > [javac] symbol: class AvroRemoteException > [javac] location: package org.apache.avro.ipc > [javac] > > /home/aolixiang/IdeaProjects/dwc/nutch/src/java/org/apache/nutch/storage/WebPage.java:35: > error: cannot find symbol > [javac] import org.apache.gora.persistency.StateManager; > [javac] ^ > [javac] symbol: class StateManager > [javac] location: package org.apache.gora.persistency > > ... > (lots of errors like that) > > [javac] > > /home/aolixiang/IdeaProjects/dwc/nutch/src/java/org/apache/nutch/storage/Host.java:136: > error: cannot find symbol > [javac] getStateManager().setDirty(this, 2); > [javac] ^ > [javac] symbol: method getStateManager() > [javac] location: class Host > [javac] 78 errors > [javac] 6 warnings > > BUILD FAILED > /home/aolixiang/IdeaProjects/dwc/nutch/build.xml:101: Compile failed; see > the compiler error output for details. > > > Could anyone tell me what might went wrong? > > > Thanks > Lixiang > -- Thanks & Regards, Handore Sagar ZYRM INC Software Engineer -- ============================================================================ IMPORTANT NOTICE: The information in this e-mail and any attached files is CONFIDENTIAL and may be legally privileged or prohibited from disclosure and unauthorised use. The views of the author may not necessarily reflect those of Zymr, Inc. It is intended solely for the addressee, or the employee or agent responsible for delivering such materials to the addressee. If you have received this message in error please return it to the sender then delete the email and destroy any copies of it. If you are not the intended recipient, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication, or any action taken or omitted to be taken in reliance upon this message or its attachments is prohibited and may be unlawful. At present the integrity of e-mail across the Internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a result of the use of this medium to transmit information by or to Zymr, Inc.

