lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrício Raphael <fabricio...@gmail.com>
Subject Exception: java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.getDirectory
Date Wed, 29 Jul 2009 14:36:00 GMT
Hi!

I'm with a error follow:
java.lang.NoSuchMethodError:
org.apache.lucene.store.FSDirectory.getDirectory(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;

In the code:
File dirIndex = new File("index");
if (dirIndex.exists()) {
    dirIndex.delete();
}
dirIndex.mkdir();
FSDirectory directory = FSDirectory.getDirectory(dirIndex); // exception
here

Obs.: The lucene-core-2.4.1.jar is in the classpath of the my project.

Can you help me with this exception?

Now, thanks!

-- 
Fabrício Raphael Silva Ferreira

home page: http://www.cos.ufrj.br/~fabriciorsf/

Mestrando em Engenharia de Sistemas e Computação
Linha de Pesquisa: Banco de Dados
Programa de Engenharia de Sistemas e Computação
Universidade Federal do Rio de Janeiro
PESC/COPPE/UFRJ

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message