# Not to able use the jar built from source and start elastic search

**URL:** <https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311>\
**Category:** Elasticsearch\
**Created:** [January 7, 2012, 7:19pm UTC](https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311 "2012-01-07T19:19:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![balakc](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@balakc](https://discuss.elastic.co/u/balakc)\
**Post date:** [January 7, 2012, 7:19pm UTC](https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311/1 "2012-01-07T19:19:40Z")

</div>

Got the elastic search source code from GIT and build with Maven.  
After that i copied elasticsearch-0.19.0-SNAPSHOT.jar  
from target directory to ES/lib and moved elasticsearch-0.17.2.jar out  
of the ES/lib directory.

After that i started elastic search am getting the below error

[2012-01-07 11:10:59,618][INFO][node]  
[Conquistador] {0.19.0-SNAPSHOT}[3887]: initializing ...  
[2012-01-07 11:10:59,624][INFO][plugins]  
[Conquistador] loaded [], sites [head]  
[2012-01-07 11:11:01,182][ERROR][bootstrap] {0.19.0-  
SNAPSHOT}: Initialization Failed ...

1. NoSuchFieldError[LUCENE\_34]2) NoClassDefFoundError[Could not  
initialize class org.elasticsearch.common.lucene.Lucene]

List of plugins i have installed are head and river-couchdb.

---

<div class="post-metadata">

**Author:** ![balakc](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@balakc](https://discuss.elastic.co/u/balakc)\
**Post date:** [January 7, 2012, 7:36pm UTC](https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311/2 "2012-01-07T19:36:37Z")

</div>

Resolved the problem, i need to copy the complete file set under lib  
directory since the source is now using Lucene 3.5 and  
binaries available at site uses Lucene 3.3.

On Jan 7, 11:19 am, balakc [balak1...@gmail.com](mailto:balak1...@gmail.com) wrote:

> Got the Elasticsearch source code from GIT and build with Maven.  
> After that i copied elasticsearch-0.19.0-SNAPSHOT.jar  
> from target directory to ES/lib and moved elasticsearch-0.17.2.jar out  
> of the ES/lib directory.
> 
> After that i started Elasticsearch am getting the below error
> 
> [2012-01-07 11:10:59,618][INFO][node]  
> [Conquistador] {0.19.0-SNAPSHOT}[3887]: initializing ...  
> [2012-01-07 11:10:59,624][INFO][plugins]  
> [Conquistador] loaded , sites [head]  
> [2012-01-07 11:11:01,182][ERROR][bootstrap] {0.19.0-  
> SNAPSHOT}: Initialization Failed ...
> 
> 1. NoSuchFieldError[LUCENE\_34]2) NoClassDefFoundError[Could not  
> initialize class org.elasticsearch.common.lucene.Lucene]
> 
> List of plugins i have installed are head and river-couchdb.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 7, 2012, 7:50pm UTC](https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311/3 "2012-01-07T19:50:54Z")

</div>

When you run "mvn package -DskipTests", you get a full installation zip  
under target/release, just use that one.

On Sat, Jan 7, 2012 at 9:36 PM, balakc [balak1718@gmail.com](mailto:balak1718@gmail.com) wrote:

> Resolved the problem, i need to copy the complete file set under lib  
> directory since the source is now using Lucene 3.5 and  
> binaries available at site uses Lucene 3.3.
> 
> On Jan 7, 11:19 am, balakc [balak1...@gmail.com](mailto:balak1...@gmail.com) wrote:
> 
> > Got the Elasticsearch source code from GIT and build with Maven.  
> > After that i copied elasticsearch-0.19.0-SNAPSHOT.jar  
> > from target directory to ES/lib and moved elasticsearch-0.17.2.jar out  
> > of the ES/lib directory.
> > 
> > After that i started Elasticsearch am getting the below error
> > 
> > [2012-01-07 11:10:59,618][INFO][node]  
> > [Conquistador] {0.19.0-SNAPSHOT}[3887]: initializing ...  
> > [2012-01-07 11:10:59,624][INFO][plugins]  
> > [Conquistador] loaded , sites [head]  
> > [2012-01-07 11:11:01,182][ERROR][bootstrap] {0.19.0-  
> > SNAPSHOT}: Initialization Failed ...
> > 
> > 1. NoSuchFieldError[LUCENE\_34]2) NoClassDefFoundError[Could not  
> > initialize class org.elasticsearch.common.lucene.Lucene]
> > 
> > List of plugins i have installed are head and river-couchdb.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:43am UTC](https://discuss.elastic.co/t/not-to-able-use-the-jar-built-from-source-and-start-elastic-search/6311/4 "2017-07-06T03:43:32Z")

</div>


