# Elasticsearch still running off of the included java even after JAVA\_HOME is set

**URL:** <https://discuss.elastic.co/t/elasticsearch-still-running-off-of-the-included-java-even-after-java-home-is-set/192252>\
**Category:** Elasticsearch\
**Created:** [July 25, 2019, 1:24pm UTC](https://discuss.elastic.co/t/elasticsearch-still-running-off-of-the-included-java-even-after-java-home-is-set/192252 "2019-07-25T13:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hursto75](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hursto75/32/8168_2.png) [@hursto75](https://discuss.elastic.co/u/hursto75)\
**Post date:** [July 25, 2019, 1:24pm UTC](https://discuss.elastic.co/t/elasticsearch-still-running-off-of-the-included-java-even-after-java-home-is-set/192252/1 "2019-07-25T13:24:39Z")

</div>

Elasticsearch still running off of the included java even after JAVA\_HOME is set. Change the Java home and every other program is finding the correct version of JAVA. Where is the config that sets java. Everything I have read says "change the java home and restart the service".

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [August 2, 2019, 12:17pm UTC](https://discuss.elastic.co/t/elasticsearch-still-running-off-of-the-included-java-even-after-java-home-is-set/192252/2 "2019-08-02T12:17:38Z")

</div>

Hi,

how did you install Elasticsearch and which version are you running? Just as an example, if you have installed it via the Debian package, the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/deb.html#deb-configuring) mention you need to set `JAVA_HOME` in `/etc/default/elasticsearch`.

Daniel

---

<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:** [August 30, 2019, 12:17pm UTC](https://discuss.elastic.co/t/elasticsearch-still-running-off-of-the-included-java-even-after-java-home-is-set/192252/3 "2019-08-30T12:17:49Z")

</div>

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