# The Java client needs Lucene libraries

**URL:** <https://discuss.elastic.co/t/the-java-client-needs-lucene-libraries/5150>\
**Category:** Elasticsearch\
**Created:** [August 13, 2011, 1:17pm UTC](https://discuss.elastic.co/t/the-java-client-needs-lucene-libraries/5150 "2011-08-13T13:17:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)\
**Post date:** [August 13, 2011, 1:17pm UTC](https://discuss.elastic.co/t/the-java-client-needs-lucene-libraries/5150/1 "2011-08-13T13:17:39Z")

</div>

I use the java client the following way:  
nodeBuilder().client(true).clusterName(clusterName).node().client();

If I don't have lucene-core, lucene-hightlighter and lucene-queries, it blows off with some ClassNotFoundException. Does these jars are really needed ? If so, why ? I don't understand why some Lucene process should be executed on the client part.  
After a very quick look to the code, it seems that InternalNode is requiring to be injected to much module for the case of a client. Should I open a ticket ?

Nicolas

---

<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:** [August 13, 2011, 2:07pm UTC](https://discuss.elastic.co/t/the-java-client-needs-lucene-libraries/5150/2 "2011-08-13T14:07:13Z")

</div>

A client node can potentially not require lucene jar files, though it has  
not been tested without those libs. In general, a client node is simply a  
node that won't have concrete indices created on it, but still forms part of  
the cluster. The TransportClient does not require Lucene jar files, as its  
different.

2011/8/13 Nicolas Lalevée [nicolas.lalevee@hibnet.org](mailto:nicolas.lalevee@hibnet.org)

> I use the java client the following way:  
> nodeBuilder().client(true).clusterName(clusterName).node().client();
> 
> If I don't have lucene-core, lucene-hightlighter and lucene-queries, it  
> blows off with some ClassNotFoundException. Does these jars are really  
> needed ? If so, why ? I don't understand why some Lucene process should be  
> executed on the client part.  
> After a very quick look to the code, it seems that InternalNode is  
> requiring to be injected to much module for the case of a client. Should I  
> open a ticket ?
> 
> Nicolas

---

<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:57am UTC](https://discuss.elastic.co/t/the-java-client-needs-lucene-libraries/5150/3 "2017-07-06T03:57:10Z")

</div>

Closed on July 6, 2017, 3:57am UTC


