# Problem with Homebrew installation (7.17.4) and JDK

**URL:** <https://discuss.elastic.co/t/problem-with-homebrew-installation-7-17-4-and-jdk/369181>\
**Category:** Elasticsearch\
**Created:** [October 21, 2024, 7:44pm UTC](https://discuss.elastic.co/t/problem-with-homebrew-installation-7-17-4-and-jdk/369181 "2024-10-21T19:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick7k](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@patrick7k](https://discuss.elastic.co/u/patrick7k)\
**Post date:** [October 21, 2024, 7:44pm UTC](https://discuss.elastic.co/t/problem-with-homebrew-installation-7-17-4-and-jdk/369181/1 "2024-10-21T19:44:50Z")

</div>

I'm attempting to re-install Elasticsearch via Homebrew on Mac, after a system update, [following these instructions](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/brew.html).

When running `brew services restart elastic/tap/elasticsearch-full`, a popup appears with the message: "jdk.app" is damaged and can't be opened.

Other posts suggest that the fix to this issue is to remove the system quarantine flag from the app file, in my case with the command `xattr -d com.apple.quarantine /usr/local/Cellar/elasticsearch-full/7.17.4/libexec/jdk.app`. But this does not resolve the issue, and produces an error instead: No such xattr: com.apple.quarantine.

I'm stumped by this one. In the meantime I'm going to look at some alternative way to install elasticsearch.
