# Caused by: java.lang.IllegalStateException: jar hell!

**URL:** <https://discuss.elastic.co/t/caused-by-java-lang-illegalstateexception-jar-hell/158748>\
**Category:** Elasticsearch\
**Created:** [November 29, 2018, 11:56am UTC](https://discuss.elastic.co/t/caused-by-java-lang-illegalstateexception-jar-hell/158748 "2018-11-29T11:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![afeef1915](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afeef1915/32/38048_2.png) [@afeef1915](https://discuss.elastic.co/u/afeef1915)\
**Post date:** [November 29, 2018, 11:56am UTC](https://discuss.elastic.co/t/caused-by-java-lang-illegalstateexception-jar-hell/158748/1 "2018-11-29T11:56:05Z")

</div>

After Installing Pom.xml of High Level Client i was not able to start elastic search in local machine.

i tried to run localhost:9200

it's giving error

Caused by: java.lang.IllegalStateException: jar hell!  
class: org.elasticsearch.protocol.xpack.migration.UpgradeActionRequired

Error Logs

[http://s000.tinyupload.com/?file\_id=72583965491514617327](http://s000.tinyupload.com/?file_id=72583965491514617327)

Pom.xml  
[http://s000.tinyupload.com/index.php?file\_id=75392939271015990471](http://s000.tinyupload.com/index.php?file_id=75392939271015990471)

I tried to find link

> <https://stackoverflow.com/questions/33975807/elasticsearch-jar-hell-error>

I have tried all except disabling jar hell.

after lots googling i came to know i have used repeat lib in pom.xml

but i couldn't find such case in my pom.xml .

Any suggestion is most welcome.

---

<div class="post-metadata">

**Author:** ![afeef1915](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afeef1915/32/38048_2.png) [@afeef1915](https://discuss.elastic.co/u/afeef1915)\
**Post date:** [November 30, 2018, 6:15am UTC](https://discuss.elastic.co/t/caused-by-java-lang-illegalstateexception-jar-hell/158748/2 "2018-11-30T06:15:45Z")

</div>

Jar Hell is about Jar conflicts

jar1: C:\Program Files\elasticsearch-6.5.1\modules\x-pack-core\x-pack-core-6.5.1.jar

jar2: C:\Program Files\elasticsearch-6.5.1\lib\elasticsearch-rest-high-level-client-6.5.1.jar

I have removed elasticsearch-rest-high-level-client jar file from lib folder.

It Resolved The problem

---

<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 28, 2018, 6:15am UTC](https://discuss.elastic.co/t/caused-by-java-lang-illegalstateexception-jar-hell/158748/3 "2018-12-28T06:15:46Z")

</div>

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