# Java home

**URL:** <https://discuss.elastic.co/t/java-home/196509>\
**Category:** Elasticsearch\
**Created:** [August 23, 2019, 11:37am UTC](https://discuss.elastic.co/t/java-home/196509 "2019-08-23T11:37:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mylyo](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mylyo](https://discuss.elastic.co/u/mylyo)\
**Post date:** [August 23, 2019, 11:37am UTC](https://discuss.elastic.co/t/java-home/196509/1 "2019-08-23T11:37:06Z")

</div>

Hello,

i'm working on elastic 7.2 install on redhat 7.6. My problem is that my service couldn't start due to error about java home. when i launch my service it return : `could not find java in JAVA_HOME or bundeled at /etc/aletrnative/jre/bin/java`.  
Config file of elasticsearch under etc/sysconfig contain actually the variable JAVA\_HOME that contain `/etc/aletrnative/jre` but the strange thing whatever the path value i choose elastic take always the path i defined and concatenate it to /bin/java as it described above. Does some body know where elastic 7.2 catch this information please?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [August 30, 2019, 1:54pm UTC](https://discuss.elastic.co/t/java-home/196509/2 "2019-08-30T13:54:54Z")

</div>

> [@mylyo](#):
>
> Does some body know where elastic 7.2 catch this information please?

Yes, it happens [here](https://github.com/elastic/elasticsearch/blob/f97606e1b86a580bbb3e12208a173742a629af3e/distribution/src/bin/elasticsearch-env#L38-L50)

---

<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:** [September 27, 2019, 1:54pm UTC](https://discuss.elastic.co/t/java-home/196509/3 "2019-09-27T13:54:55Z")

</div>

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