# I downloaded and installed elasticsearch

**URL:** <https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266760>\
**Category:** Elasticsearch\
**Created:** [March 10, 2021, 4:20am UTC](https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266760 "2021-03-10T04:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulGureghian](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@PaulGureghian](https://discuss.elastic.co/u/PaulGureghian)\
**Post date:** [March 10, 2021, 4:20am UTC](https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266760/1 "2021-03-10T04:20:46Z")

</div>

But when I do `./bin/elasticsearch` it says it can't find the bundled jdk.

Why do I have to set JAVA\_HOME for Elasticsearch to use it's bundled Java?

And if I have to set JAVA\_HOME, what exactly do I need to do ?

What file do I edit and what syntax do I use ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 10, 2021, 4:41am UTC](https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266760/2 "2021-03-10T04:41:32Z")

</div>

Let's continue the same discussion where you started it : [I downloaded and installed elasticsearch - #5 by PaulGureghian](https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266623/5)

I'm closing this one. Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 10, 2021, 4:41am UTC](https://discuss.elastic.co/t/i-downloaded-and-installed-elasticsearch/266760/3 "2021-03-10T04:41:37Z")

</div>


