Valhalla builds & macOS Gatekeeper: “jdk-23.jdk” is damaged and can’t be opened.
Jesse Wilson
jesse at swank.ca
Thu Aug 8 16:02:51 UTC 2024
Hi,
I had a problem with the Valhalla release build I downloaded to my Mac. I got this scary error in a dialog when I ran java:
> “jdk-23.jdk” is damaged and can’t be opened. You should move it to the Trash.
I read through Console.app to get more context:
> AMFI: '/Library/Java/JavaVirtualMachines/valhalla-x86_64-jdk-23.jdk/Contents/Home/bin/java' is adhoc signed.
> /Library/Java/JavaVirtualMachines/valhalla-x86_64-jdk-23.jdk/Contents/Home/bin/java not valid: Error Domain=AppleMobileFileIntegrityError Code=-423 "The file is adhoc signed or signed by an unknown certificate chain" UserInfo={NSURL=file:///Library/Java/JavaVirtualMachines/valhalla-x86_64-jdk-23.jdk/Contents/Home/bin/java, NSLocalizedDescription=The file is adhoc signed or signed by an unknown certificate chain}
I was able to work around this issue by taking the JDK directory out of the quarantine:
> sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/jdk-23.jdk
I would like to request somebody fight Apple’s GateKeeper system so this workaround isn’t necessary for future releases. In the interim this workaround might come in handy.
– Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20240808/073c9b82/attachment.htm>
More information about the valhalla-dev
mailing list