You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Jonathan Hunter <Jo...@oberlin.edu> on 2007/02/01 18:00:09 UTC

Re: Compiling PruneIndexTool trouble

dear nutch-users
I am trying to make modifications to the PruneIndexTool.java file in my
nutch directory. When I compile this using ant:
$ export ANT_HOME=/usr/local/ant/apache-ant-1.6.5
$ export PATH=${PATH}:${ANT_HOME}/bin
$ ant
then call:
$ bin/nutch org.apache.nutch.tools.PruneIndexTool

I get the missing arguments error, which correctly calls the usage()
method. The problem lies in that when I try to make any type of
modification, bin/nutch uses the original version of the Tool, never the
modified Tool. I've made sure to edit the Tool in the src/java/.../tools
directory, which ant compiles from. I've put test print statements at
the beginning of the usage() method as well as at the start of the main
method, but these statements are not called when running the Tool.

my PATH and CLASSPATH are as followed:
PATH=$PATH:/usr/local/j2sdk1.3.2_08/bin/
CLASSPATH=/home/jon/nutch-0.8.1/jakarta-oro-2.0.8/src/java:/home/jon/nutch-0.8.1/lucene-2.0.0/src/java:/home/jon/nutch-0.8.1/src/java:/home/jon/nutch-0.8.1/src/plugin/urlfilter-regex/src/java:.

thank you,
~Jon 
----- Original Message -----
From: Renaud Richardet <re...@oslutions.com>
Date: Tuesday, January 23, 2007 7:07 pm
Subject: Re: Compiling PruneIndexTool trouble
To: nutch-user@lucene.apache.org

> Hey Jon,
> 
> Ant should have already compiled it for you.
> Try bin/nutch org.apache.nutch.tools.PruneIndexTool [...] and it 
> should 
> work.
> 
> HTH,
> Renaud
> 
> 
> Jonathan Hunter wrote:
> > nutch-users,
> > I was able to use ant to build and compile my nutch directory. I was
> > wondering if ant is the correct tool to compile the 
> PruneIndexTool.java> specifically. If so, what is the command I 
> should call to compile?
> >
> > thank you,
> > ~Jon
> >
> > ----- Original Message -----
> > From: Sami Siren <ss...@gmail.com>
> > Date: Monday, January 22, 2007 10:10 am
> > Subject: Re: Compiling PruneIndexTool trouble
> > To: nutch-user@lucene.apache.org
> >
> >   
> >> Jonathan Hunter wrote:
> >>     
> >>> Dear nutch-users,
> >>>
> >>> I am trying to make some changes to the Nutch's PruneIndexTool, 
> but>>> before I start making those changes I wanted to make sure 
> that I 
> >>>       
> >> am able
> >>     
> >>> to compile the current PruneIndexTool from the command line.
> >>>
> >>> I checked to make sure that the java compiler works in general 
> by 
> >>>       
> >> using> it to compile a simple hello world program.
> >>     
> >>> I did this by calling the following command from my nutch 
> directory:>>>
> >>> $ javac helloworld.java
> >>> //compiles with no errors
> >>> $ java helloworld
> >>> hello world
> >>> $
> >>>
> >>>       
> >> You should use "ant" command to compile nutch (including 
> >> PruneIndexTool).
> >> $ ant
> >>
> >> --
> >> Sami Siren
> >>
> >>     
> >
> >   
> 
> 
> -- 
> renaud richardet                           +1 617 230 9112
> renaud <at> oslutions.com         http://www.oslutions.com
> 
>