[ 
https://issues.apache.org/jira/browse/LUCENE-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14576990#comment-14576990
 ] 

Cao Manh Dat commented on LUCENE-6071:
--------------------------------------

Make sure that the lucene-core*.jar in you web application server is the same 
as the lucene-core*.jar in your development environment.

> java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47
> --------------------------------------------------------------------
>
>                 Key: LUCENE-6071
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6071
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/codecs
>    Affects Versions: 4.7.2
>         Environment: Websphere Application Server 8.5
>            Reporter: Tamer Saleh
>            Priority: Blocker
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> I have a run time error when running the below code snippet on websphere 
> application server 8.5:
>        Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_47);
>       IndexWriterConfig iW = new 
> IndexWriterConfig(Version.LUCENE_47,analyzer);
>       Directory index = new RAMDirectory();
>       IndexWriter writer = new IndexWriter(index,iW);  
> The error is:
> java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to