I use eclipse to run NutchAnalysis.java, but it meet QueryFilter RunTime error

2006-09-10 Thread heack
The erros are described here: Exception in thread "main" java.lang.RuntimeException: org.apache.nutch.searcher.QueryFilter not found. at org.apache.nutch.searcher.QueryFilters.(QueryFilters.java:59) at org.apache.nutch.analysis.NutchAnalysis.parseQuery(NutchAnalysis.java:58) at org.apache.nutch

Help: DistributedSearch thown ClassCastException

2006-09-10 Thread emanihc
hello all I check out directly from SVN to get the sources, run "bin/nutch server 12345 ../crawl/" run "bin/nutch 'org.apache.nutch.searcher.DistributedSearch$Client' 'www' localhost 12345" and then it thrown Exception below: $ bin/nutc

Re: How could I test my modify to NutchAnalysis.jj?

2006-09-10 Thread heack
Thank you for your reply. yeah, I use javacc NutchAnalysis.jj to generate NuchAnalysis.java, and what is the next step? bin/nutch it suggest to use bin/nutch CLASSNAME to run a class , So i ruan bin/nutch NutchAnalysis, but it shows: exception in thread "main" java.lang.NoClassDefFoundError: Nut

Re: How could I test my modify to NutchAnalysis.jj?

2006-09-10 Thread Stefan Groschupf
There is a eclipse java cc plugin. It compiles your the grammar and you can write easily test code. However it has it's own issues so you may just want to generate the java files with the nutch ant script and write than unit tests again these files. HTH Stefan On 10.09.2006, at 00:49, heack

How could I test my modify to NutchAnalysis.jj?

2006-09-10 Thread heack
I made some changes to this file(with main func), and I want to test it, What should I do? I use ant to build, but it build it all. Maybe I could write an ant xml to run it, but is there any easier way to do that? Thank you!