I am following instruction http://wiki.apache.org/solr/OpenNLP to test OpenNLP, Solr integration
1. pull 4.0 branch from trunk 2. apply patch LUCENE-2899 patch (there are several LUCENE-2899 patch files, I took the one, 385KB, 02/Jul/12 08:05, I should only apply this one, correct ?) 3. ant compile and get the following errors: ------------------- [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] /home/swu/newproject/lucene_4x/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizer.java:170: error: method reset in class TokenStream cannot be applied to given types; [javac] super.reset(input); [javac] ^ [javac] required: no arguments [javac] found: Reader [javac] reason: actual and formal argument lists differ in length [javac] /home/swu/newproject/lucene_4x/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizer.java:168: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] 2 errors [javac] 2 warnings BUILD FAILED ------------------- I am running java 1.7. Is patch only work for java 1.6 ?, or I am doing something wrong. Thanks Sam