If I recall it correctly this method was introduced in Lucene 2.1. I
agree with Ian you must have a different lucene version in your
classpath. Maybe you added the jar to the JDK's  / JRE's ext directory
or some other obscure place?!

simon

On Wed, Jul 29, 2009 at 4:52 PM, Ian Lea<ian....@gmail.com> wrote:
> You've probably got some other version of lucene somewhere in the
> classpath, one that doesn't have that method in that class.  It is
> there in 2.4.1, wasn't there in 1.4.3, so no doubt appeared somewhere
> in between.  And is deprecated in 2.9-dev.
>
>
> --
> Ian.
>
>
> 2009/7/29 Fabrício Raphael <fabricio...@gmail.com>:
>> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

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

Reply via email to