de en

Thorsten Reimers

Gatekeeper under macOS

Aug 31, 2025

I installed Java 18.0.2 and added it to my software management using sdkman.

Unfortunately, all Java binaries such as java, javac, javadoc, jps, etc. were reported as corrupt and I was then prompted to delete them.

The culprit is Gatekeeper. Previously, you could set it to allow all applications, including those not from the App Store or from signed developers. This worked and is supposed to still work today:

sudo spctl --master-disable

However, this setting is supposedly only valid for 30 days and then reset by macOS.

I continued researching and decided to use xattr to reset the quarantine attribute of all affected binaries:

xattr -r -d com.apple.quarantine /Users/treimers/.sdkman/candidates/java/18.0.2-tem/bin

I hope I can rest easy now...