<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>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:<br></div><div><br></div><div>> “jdk-23.jdk” is damaged and can’t be opened. You should move it to the Trash.<br></div><div><br></div><div>I read through Console.app to get more context:<br></div><div><br></div><div>> AMFI: '/Library/Java/JavaVirtualMachines/valhalla-x86_64-<a href="http://jdk-23.jdk/Contents/Home/bin/java">jdk-23.jdk/Contents/Home/bin/java</a>' is adhoc signed.<br></div><div>> /Library/Java/JavaVirtualMachines/valhalla-x86_64-<a href="http://jdk-23.jdk/Contents/Home/bin/java">jdk-23.jdk/Contents/Home/bin/java</a> 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-<a href="http://jdk-23.jdk/Contents/Home/bin/java">jdk-23.jdk/Contents/Home/bin/java</a>, NSLocalizedDescription=The file is adhoc signed or signed by an unknown certificate chain}<br></div><div><br></div><div>I was able to work around this issue by taking the JDK directory out of the quarantine:<br></div><div><br></div><div>> sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/jdk-23.jdk<br></div><div><br></div><div>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.<br></div><div><br></div><div>– Jesse<br></div></body></html>