# Running elasticsearch on mac gives could not find java error

**URL:** <https://discuss.elastic.co/t/running-elasticsearch-on-mac-gives-could-not-find-java-error/228170>\
**Category:** Elasticsearch\
**Created:** [April 15, 2020, 4:41pm UTC](https://discuss.elastic.co/t/running-elasticsearch-on-mac-gives-could-not-find-java-error/228170 "2020-04-15T16:41:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 15, 2020, 4:41pm UTC](https://discuss.elastic.co/t/running-elasticsearch-on-mac-gives-could-not-find-java-error/228170/1 "2020-04-15T16:41:45Z")

</div>

I have been using elasticsearch 7.3.0 on a mac for about a year now.  
I did a fresh download of the 7.6.2 version from this link  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html)  
When I try to run elasticsearch, I get an error :

```auto
could not find java in bundled jdk at /Users/madabhuc/elasticsearch-7.6.2/jdk.app/Contents/Home/bin/java

```

I set JAVA\_HOME to /Users/madabhuc/elasticsearch-7.6.2.  
Why is it looking for jdk.app ?

---

<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:** [May 13, 2020, 4:41pm UTC](https://discuss.elastic.co/t/running-elasticsearch-on-mac-gives-could-not-find-java-error/228170/2 "2020-05-13T16:41:48Z")

</div>

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