The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Introduction to Nutch, Part 2: Searching
Subject:  compiling SearchApp
Date:  2007-07-23 21:45:20
From:  kaimiddleton


Hi Tom: I tried to get the SearchApp to compile but I don't understand what CLASSPATH is necessary. I'm using a very recent nightly build of nutch. Even if I include every single jar file there is under the NUTCH_HOME directory tree, plus NUTCH_HOME/src/java, I still get errors:

$ javac -cp $NUTCH_HOME/src/java:[all those jars] SearchApp

SearchApp.java:21: cannot find symbol
symbol : constructor NutchBean()
location: class org.apache.nutch.searcher.NutchBean
NutchBean bean = new NutchBean();
^
SearchApp.java:22: cannot find symbol
symbol : method parse(java.lang.String)
location: class org.apache.nutch.searcher.Query
Query query = Query.parse(args[0]);
^
SearchApp.java:32: incompatible types
found : org.apache.nutch.searcher.Summary
required: java.lang.String
bean.getSummary(details, query);
^
3 errors

I have a full stack trace posted here:
http://www.mail-archive.com/nutch-user@lucene.apache.org/msg08869.html

 Feed java.net RSS Feeds