Note that there are some explanatory texts on larger screens.

plurals
  1. POLucene: Cannot find symbol
    primarykey
    data
    text
    <p>I am using Lucene 3.4.0, hibernate (hibernate-all.jar), ANT and TestNG to run some test... Most of all works right now, but since I have implemented my lucene part nothing seems to work when I use ant command... I'm kind of lost here.</p> <p>Because everything works perfectly locally. I can run my test, compile, etc. As soons as, I try to build with ant, I get this error "cannot find symbol" for contructor StandartAnalyzer(version.), etc... </p> <p>But like I said, everything works on eclipse... At first, I had an method not found error, but fixed it because hibernate is not compatible with the latest version of lucene. So I upgraded hibernate... but now, I get this.</p> <p>Thank you. If you need more information plz ask. </p> <pre><code> $ ant explode Buildfile: c:\DuplicateBugFinder\dbf\build.xml init: groovy.compile: groovy.copy: compile: [javac] c:\DuplicateBugFinder\dbf\build.xml:156: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=l st; set to false for repeatable builds [javac] Compiling 27 source files to c:\DuplicateBugFinder\dbf\exploded-archives\dbf.ear\dbf_jar [javac] c:\DuplicateBugFinder\dbf\src\hot\com\rim\sts\dbf\business\service\classification\LuceneClassificationAlgorithm.java: 6: cannot find symbol [javac] symbol : constructor StandardAnalyzer(org.apache.lucene.util.Version) [javac] location: class org.apache.lucene.analysis.standard.StandardAnalyzer [javac] Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_34); [javac] ^ [javac] c:\DuplicateBugFinder\dbf\src\hot\com\rim\sts\dbf\business\service\classification\LuceneClassificationAlgorithm.java: 2: cannot find symbol [javac] symbol : constructor QueryParser(org.apache.lucene.util.Version,java.lang.String,org.apache.lucene.analysis.Analyzer [javac] location: class org.apache.lucene.queryParser.QueryParser [javac] new QueryParser(Version.LUCENE_34, "title", analyzer) [javac] ^ [javac] c:\DuplicateBugFinder\dbf\src\hot\com\rim\sts\dbf\business\service\classification\LuceneClassificationAlgorithm.java: 9: cannot find symbol [javac] symbol : constructor IndexSearcher(org.apache.lucene.store.Directory,boolean) [javac] location: class org.apache.lucene.search.IndexSearcher [javac] searcher = new IndexSearcher(index, true); [javac] ^ [javac] c:\DuplicateBugFinder\dbf\src\hot\com\rim\sts\dbf\business\service\classification\LuceneClassificationAlgorithm.java: 00: cannot find symbol [javac] symbol : method search(org.apache.lucene.search.Query,org.apache.lucene.search.TopScoreDocCollector) [javac] location: class org.apache.lucene.search.IndexSearcher [javac] searcher.search(q, collector); [javac] ^ [javac] 4 errors BUILD FAILED c:\DuplicateBugFinder\dbf\build.xml:156: Compile failed; see the compiler error output for details. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload