Thanks Andi, I'd love to do it "the proper way", but I have no idea how to go about building my own jar files, much less where to put that -jar parameter for jcc. Is there a tutorial on this somewhere?
Cheers, Daniel On 15 January 2015 at 18:01, Andi Vajda <va...@apache.org> wrote: > > > On Jan 15, 2015, at 09:31, Daniel Duma <danield...@gmail.com> wrote: > > > > Update: never mind, I was placing the files in the wrong folder. Solved! > > Good, that was going to be my first question since you didn't tell us > anything about your new class(es). > > The proper way to add things to lucene and pylucene is to put your stuff > into your own package and to create a jar file from that package. Then, to > add it to pylucene, you just add it to the list of jar files its build > processes, with jcc's --jar parameter. > > Andi.. > > > > > Thanks, > > Daniel > > > >> On 15 January 2015 at 17:00, Daniel Duma <danield...@gmail.com> wrote: > >> > >> Hi all, > >> > >> I have added some classes that I need to Lucene and now I cannot build > >> PyLucene 4.9. > >> > >> Everything runs fine inside Eclipse, but when copying the .java files to > >> the corresponding folders inside the PyLucene source directory and > >> rebuilding, I get this error: > >> > >> > >> > >> > >> > >> > *C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\core\src\java\org\apache\lucene\queryparser\classic\FieldAgnosticQueryParser.java:12: > >> error: cannot find symbolsymbol: class QueryParser*Here is the full > output: > >> > >> ivy-configure: > >> [ivy:configure] :: Apache Ivy 2.4.0-rc1 - 20140315220245 :: > >> http://ant.apache.org/ivy/ :: > >> [ivy:configure] :: loading settings :: file = > >> C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\ivy-settings.xml > >> > >> resolve: > >> > >> init: > >> > >> -clover.disable: > >> > >> -clover.load: > >> > >> -clover.classpath: > >> > >> -clover.setup: > >> > >> clover: > >> > >> compile-core: > >> [javac] Compiling 734 source files to > >> C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\build\core\classes\java > >> [javac] > >> > >> > C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\core\src\java\org\apache\lucene\queryparser\classic\FieldAgnosticMultiFieldQueryParser.java:15: > >> error: cannot find symbol > >> [javac] MultiFieldQueryParser { > >> [javac] ^ > >> [javac] symbol: class MultiFieldQueryParser > >> [javac] > >> > >> > C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\core\src\java\org\apache\lucene\queryparser\classic\FieldAgnosticQueryParser.java:12: > >> error: cannot find symbol > >> [javac] public class FieldAgnosticQueryParser extends QueryParser { > >> [javac] ^ > >> [javac] symbol: class QueryParser > >> [javac] > >> > >> > C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\core\src\java\org\apache\lucene\queryparser\classic\FieldAgnosticMultiFieldQueryParser.java:23: > >> error: method does not override or implement a method from a supertype > >> [javac] @Override > >> [javac] ^ > >> > >> BUILD FAILED > >> C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\common-build.xml:694: > The > >> following error occurred while executing this line: > >> C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\common-build.xml:480: > The > >> following error occurred while executing this line: > >> C:\NLP\pylucene-4.9.0-0\lucene-java-4.9.0\lucene\common-build.xml:1755: > >> Compile failed; see the compiler error output for details. > >> > >> PyLucene builds just fine without the added files, and I have checked > and > >> the files it can't find are where they should be! > >> > >> Cheers, > >> Daniel > >> >