# "You must set the ES\_CLASSPATH var"

**URL:** https://discuss.elastic.co/t/you-must-set-the-es-classpath-var/64323
**Category:** Elasticsearch
**Created:** [October 28, 2016, 7:12pm UTC](https://discuss.elastic.co/t/you-must-set-the-es-classpath-var/64323 "2016-10-28T19:12:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MichaelW](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@MichaelW](https://discuss.elastic.co/u/MichaelW)
#### Post date: [October 28, 2016, 7:12pm UTC](https://discuss.elastic.co/t/you-must-set-the-es-classpath-var/64323/1 "2016-10-28T19:12:52Z")

</div>

Hello. I've got ES running locally just fine. I'm trying to get it running on a server now, however, and I'm stymied by "You must set the ES\_CLASSPATH var" when trying to start elasticsearch. I'm currently using 5.0, but other versions have the same issue. Using OpenJDK 1.8.0\_101-b13. Any ideas on how to get this up and running?

---

<div class="post-metadata">

### Author: ![Rajind\_Ruparathna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajind_ruparathna/32/10545_2.png) [@Rajind\_Ruparathna](https://discuss.elastic.co/u/Rajind_Ruparathna)
#### Post date: [October 29, 2016, 1:52am UTC](https://discuss.elastic.co/t/you-must-set-the-es-classpath-var/64323/2 "2016-10-29T01:52:52Z")

</div>

See my answer [here](http://stackoverflow.com/a/40315267/1849366)

---

<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, 10:08pm UTC](https://discuss.elastic.co/t/you-must-set-the-es-classpath-var/64323/3 "2017-07-05T22:08:38Z")

</div>


