lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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
against.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message