# Which client jars are needed on the classpath for a java client on version 2.1.0?

**URL:** <https://discuss.elastic.co/t/which-client-jars-are-needed-on-the-classpath-for-a-java-client-on-version-2-1-0/35691>\
**Category:** Elasticsearch\
**Created:** [November 26, 2015, 5:11pm UTC](https://discuss.elastic.co/t/which-client-jars-are-needed-on-the-classpath-for-a-java-client-on-version-2-1-0/35691 "2015-11-26T17:11:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bert.vermeiren](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bert.vermeiren](https://discuss.elastic.co/u/bert.vermeiren)\
**Post date:** [November 26, 2015, 5:11pm UTC](https://discuss.elastic.co/t/which-client-jars-are-needed-on-the-classpath-for-a-java-client-on-version-2-1-0/35691/1 "2015-11-26T17:11:36Z")

</div>

Hi,

I use the java client to connect to a cluster.

Which client jars are really needed on the classpath ??  
I connect via the transport client.

And in particular I use it in JBoss EAP 6.

This seems really not up to date :  
[https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/\_deploying\_in\_jboss\_eap6\_module.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_deploying_in_jboss_eap6_module.html)

I got a lot of ClassNotFoundExceptions on the third party dependencies of elasticsearch itself, like jodaTime, t-digest, jsr166e etc...

Why did elastic moved away from shaded packages ?  
A lot of other clients are for example using other versions of those libraries and it clashes.  
So for elastic I probably have to create even a separate module for the dependencies of elastic which are not really used by my jboss app so those are not "exported" (in the sense of a jboss module).

So again, which client jars are really needed on the classpath ??

Many thanks.

Regards,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 26, 2015, 8:37pm UTC](https://discuss.elastic.co/t/which-client-jars-are-needed-on-the-classpath-for-a-java-client-on-version-2-1-0/35691/2 "2015-11-26T20:37:04Z")

</div>

I just answered a similar question for 2.0.0 here [Error while using the Java API](https://discuss.elastic.co/t/error-while-using-the-java-api/35673/4)

If you run `mvn dependency:tree` in core project, you get:

```auto
[INFO] org.elasticsearch:elasticsearch:jar:2.1.0
[INFO] +- org.apache.lucene:lucene-core:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-backward-codecs:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-queries:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-memory:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-highlighter:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-queryparser:jar:5.3.1:compile
[INFO] | \- org.apache.lucene:lucene-sandbox:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-suggest:jar:5.3.1:compile
[INFO] | \- org.apache.lucene:lucene-misc:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-join:jar:5.3.1:compile
[INFO] | \- org.apache.lucene:lucene-grouping:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-spatial:jar:5.3.1:compile
[INFO] | \- org.apache.lucene:lucene-spatial3d:jar:5.3.1:compile
[INFO] +- org.apache.lucene:lucene-expressions:jar:5.3.1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.5:compile
[INFO] | +- org.ow2.asm:asm:jar:4.1:compile
[INFO] | \- org.ow2.asm:asm-commons:jar:4.1:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.5:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] +- com.github.spullara.mustache.java:compiler:jar:0.8.13:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] +- joda-time:joda-time:jar:2.8.2:compile
[INFO] +- org.joda:joda-convert:jar:1.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.6.2:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.6.2:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.2:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.15:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.2:compile
[INFO] +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] +- com.tdunning:t-digest:jar:3.0:compile
[INFO] +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] +- org.codehaus.groovy:groovy-all:jar:indy:2.4.4:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- log4j:apache-log4j-extras:jar:1.2.17:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] +- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] \- com.twitter:jsr166e:jar:1.1.0:compile

```

HTH

---

<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 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/which-client-jars-are-needed-on-the-classpath-for-a-java-client-on-version-2-1-0/35691/3 "2017-07-05T23:35:31Z")

</div>


