# \[Upgrade from 7.6.2 to 7.17.15\] Cannot find symbol import org.elasticsearch.client.RestClientBuilder;

**URL:** <https://discuss.elastic.co/t/upgrade-from-7-6-2-to-7-17-15-cannot-find-symbol-import-org-elasticsearch-client-restclientbuilder/350894>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [January 12, 2024, 12:55am UTC](https://discuss.elastic.co/t/upgrade-from-7-6-2-to-7-17-15-cannot-find-symbol-import-org-elasticsearch-client-restclientbuilder/350894 "2024-01-12T00:55:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisssss](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@chrisssss](https://discuss.elastic.co/u/chrisssss)\
**Post date:** [January 12, 2024, 12:55am UTC](https://discuss.elastic.co/t/upgrade-from-7-6-2-to-7-17-15-cannot-find-symbol-import-org-elasticsearch-client-restclientbuilder/350894/1 "2024-01-12T00:55:16Z")

</div>

Hello, I am trying to upgrade the elasticsearch for java from 7.6.2 to 7.16.15, but the following classes seem to be deprecated:

```auto

.......Producer.java:15: error: cannot find symbol
import org.elasticsearch.client.RestClient;
                               ^
  symbol: class RestClient
  location: package org.elasticsearch.client
.......Producer.java:16: error: cannot find symbol
import org.elasticsearch.client.RestClientBuilder;
                               ^
  symbol: class RestClientBuilder
  location: package org.elasticsearch.client
.......Producer.java:17: error: cannot find symbol
import org.elasticsearch.client.RestHighLevelClient;
                               ^
  symbol: class RestHighLevelClient
  location: package org.elasticsearch.client
.......Producer.java:48: error: cannot find symbol
import org.elasticsearch.common.unit.TimeValue;
                                    ^
  symbol: class TimeValue
  location: package org.elasticsearch.common.unit
.......Producer.java:51: error: cannot find symbol
import org.elasticsearch.client.RestClient;

```

Is there a changelog or a guide mentioning the packages for these classes?

---

<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:** [February 9, 2024, 12:56am UTC](https://discuss.elastic.co/t/upgrade-from-7-6-2-to-7-17-15-cannot-find-symbol-import-org-elasticsearch-client-restclientbuilder/350894/2 "2024-02-09T00:56:07Z")

</div>

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