# ElasticSearch High Level Client ClassNotFoundError

**URL:** <https://discuss.elastic.co/t/elasticsearch-high-level-client-classnotfounderror/107778>\
**Category:** Elasticsearch\
**Created:** [November 15, 2017, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-high-level-client-classnotfounderror/107778 "2017-11-15T15:32:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pocguy](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@pocguy](https://discuss.elastic.co/u/pocguy)\
**Post date:** [November 15, 2017, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-high-level-client-classnotfounderror/107778/1 "2017-11-15T15:32:15Z")

</div>

ElasticSearch Version: 5.6.4  
JAVA JDK 1.8  
Spring Boot 1.5.8

Caused by: java.lang.ClassNotFoundException: org.elasticsearch.action.main.MainRequest  
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

I keep getting this error for this line:  
this.restHighLevelClient = new RestHighLevelClient(restLowLevelClient);

I have the following dependecy in my POM  
  
org.elasticsearch.client  
elasticsearch-rest-high-level-client  
${elastic.version}

---

<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 15, 2017, 3:45pm UTC](https://discuss.elastic.co/t/elasticsearch-high-level-client-classnotfounderror/107778/2 "2017-11-15T15:45:56Z")

</div>

IIRC you need spring boot 2.0.

But unsure though.

---

<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:** [December 13, 2017, 3:45pm UTC](https://discuss.elastic.co/t/elasticsearch-high-level-client-classnotfounderror/107778/3 "2017-12-13T15:45:58Z")

</div>

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