lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Indexing PDF document
Date Wed, 06 Jun 2007 22:33:01 GMT

: Exception in thread "main" java.lang.NoSuchMethodError:
: org.apache.lucene.document.Document.add(Lo
: rg/apache/lucene/document/Field;)V

: Very strange since the exception is NoSuchMethod  Document.add(Field)

I *believe* the problem is that there is actually no such method
(Document.add(Field)) in the Lucene trunk -- that method use to exist, but
was replaced with Document.add(Fieldable) ... Field is an instance of
Fieldable so your code will compil and run, but binary class files which
were compiled against older versions of Lucene will not.

if you compile all of the PDFBox code from source, it might work ..
laternately you could use the version of Lucene that PDFBox was compiled


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message