# What jar is needed when I use elasticsearch.jar to develop java program?

**URL:** <https://discuss.elastic.co/t/what-jar-is-needed-when-i-use-elasticsearch-jar-to-develop-java-program/52007>\
**Category:** Elasticsearch\
**Created:** [June 7, 2016, 12:52am UTC](https://discuss.elastic.co/t/what-jar-is-needed-when-i-use-elasticsearch-jar-to-develop-java-program/52007 "2016-06-07T00:52:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 7, 2016, 6:02am UTC](https://discuss.elastic.co/t/what-jar-is-needed-when-i-use-elasticsearch-jar-to-develop-java-program/52007/2 "2016-06-07T06:02:03Z")

</div>

If you are starting a new project, use the latest stable.

I gave a similar answer there:

> [@Issues faced during ES upgrade from 1.4.2 to 2.3.2](https://discuss.elastic.co/t/issues-faced-during-es-upgrade-from-1-4-2-to-2-3-2/51951/2):
>
> Not yet. You should use Maven or Gradle to get the dependencies. Here we go: $ mvn dependency:tree [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Elasticsearch: Core 2.3.4-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ ela…

---

_[View the full topic](https://discuss.elastic.co/t/what-jar-is-needed-when-i-use-elasticsearch-jar-to-develop-java-program/52007)._
