# ES 2.0.0 + Antlr4 = Jar Hell

**URL:** <https://discuss.elastic.co/t/es-2-0-0-antlr4-jar-hell/34688>\
**Category:** Elasticsearch\
**Created:** [November 16, 2015, 2:30pm UTC](https://discuss.elastic.co/t/es-2-0-0-antlr4-jar-hell/34688 "2015-11-16T14:30:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehowe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehowe/32/6728_2.png) [@ehowe](https://discuss.elastic.co/u/ehowe)\
**Post date:** [November 16, 2015, 2:30pm UTC](https://discuss.elastic.co/t/es-2-0-0-antlr4-jar-hell/34688/1 "2015-11-16T14:30:14Z")

</div>

It appears I can neither write an ES 2.0 plugin nor an application that uses a Node Client if I also want to use Antlr4 in my plugin or application, due to a "jar hell" IllegalStateException indicating a conflict with ES's antlr-runtime-3.5.jar.

Is there any way around this, or do I need to suck it up and use Antlr3 instead of Antlr4?

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 16, 2015, 2:56pm UTC](https://discuss.elastic.co/t/es-2-0-0-antlr4-jar-hell/34688/2 "2015-11-16T14:56:49Z")

</div>

If you don't use the Lucene Expression Language

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#\_lucene\_expressions\_scripts](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#_lucene_expressions_scripts)

(which is optional to ES 2.0) you can safely remove ES antlr-runtime-3,5.jar

---

<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:** [July 5, 2017, 11:38pm UTC](https://discuss.elastic.co/t/es-2-0-0-antlr4-jar-hell/34688/3 "2017-07-05T23:38:11Z")

</div>


