Send  us your classpath configure file  ".class"  of your Eclipse project ....

----- Original Message ----- 
From: "Jonathan Hunter" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 10, 2007 2:24 PM
Subject: Running Nutch in Eclipse


> nutch users,
> I am having problems making modifications to the PruneIndexTool using
> Eclipse from the nutch-0.8.1 release. I am able to import files into
> Eclipse, thanks to this tutorial:
> http://wiki.apache.org/nutch/RunNutchInEclipse
> What I have run into is that Eclipse does not recognize the inheritance
> from the other nutch classes. When a class is called to define a
> variable, i get an error message: "*class* cannot be resolved to a
> type". Some of this may stem from the inability to import packages: "The
> import org.apache.lucene cannot be resolved"//one example//
> 
> More specifically, all classes have this sort of problem:
> public boolean isPrunable(Query q, IndexReader reader, int docNum)
> throws Exception{
>            Document doc = reader.document(docNum);
>            String url = doc.get("url");
> //Error: Query cannot be resolved to a type
> //Error: IndexReader cannot be resolved to a type
> //Error: Document cannot be resolved to a type
> 
> Eclipse Properties:
> I have followed the tutorial and have a build path with the conf/
> directory. Under the java build path I have included as sources all the
> files in the nutch directory. Each pull down tab has:
> Included: (all)
> Excluded: (none)
> Native library location: (none)
> Under Projects tab in the build path I do not have anything when I try
> to add a project there are no projects to add.
> Libraries include the two .jar files added from the tutoiral:
> http://nutch.cvs.sourceforge.net/nutch/nutch/src/plugin/parse-mp3/lib/
> http://nutch.cvs.sourceforge.net/nutch/nutch/src/plugin/parse-rtf/lib/
> and the system library.
> The Order and Export tab has all the nutch folders with its plugins.
> 
> If you could direct me to be to be able to resolve these variables and
> allow Eclipse to inherit each class in the nutch directory, it would be
> much appreciated.
> 
> ~Jon
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to