# Migrating java application to Elasticsearch 8.x from ES 7.17.5

**URL:** https://discuss.elastic.co/t/migrating-java-application-to-elasticsearch-8-x-from-es-7-17-5/308809
**Category:** Elasticsearch
**Created:** [July 4, 2022, 10:46am UTC](https://discuss.elastic.co/t/migrating-java-application-to-elasticsearch-8-x-from-es-7-17-5/308809 "2022-07-04T10:46:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Swati\_Jain1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swati_jain1/32/97834_2.png) [@Swati\_Jain1](https://discuss.elastic.co/u/Swati_Jain1)
#### Post date: [July 4, 2022, 10:46am UTC](https://discuss.elastic.co/t/migrating-java-application-to-elasticsearch-8-x-from-es-7-17-5/308809/1 "2022-07-04T10:46:51Z")

</div>

We are using Elasticsearch 7.17.5 which is used by a Java 8 application. We are planning to upgrade to Elasticsearch 8.x.

Since High-level Rest Client is now deprecated I am unable to resolve dependencies in order to use the HLRC existing code with Elasticsearch Version 8.x.( [High Level Client compatibilty with ES 8](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html#:%7E:text=The%20High%20Level%20Client%20version,communicate%20with%20Elasticsearch%20version%208.) )

Which version of elasticsearch-rest-high-level-client should we use?

Also do we need to migrate our java application to java 17?

---

<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: [August 1, 2022, 10:47am UTC](https://discuss.elastic.co/t/migrating-java-application-to-elasticsearch-8-x-from-es-7-17-5/308809/2 "2022-08-01T10:47:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
