I downloaded OpenJDK 13 from the official website and extracted it to my /Library/Java/JavaVirtualMachines/ folder. If I now try to run it with java -version I get a prompt saying something around the lines of "macOS can't verify it is not a Virus" and asks me if I want to delete it or cancel.

  • The Tar's Checksum matches the one from the Website.
  • I used sudo in order to move the folder, otherwise I got access denied
  • Running java as sudo changes nothing

Any ideas on how I can get OpenJDK 13 to install on MacOS Catalina?

  • Firstly, welcome to Ask Different! :) I hope you come to find this site has a lot to offer! In case you haven't already, it's worth taking the time to read the tour. All the best with getting OpenJDK 13 installed. – Monomeeth Oct 9 '19 at 9:28
  • 2
    Please check the exact wording of messages. It's much more likely to say something like "MacOS cannot verify the identity of this software" than "MacOS can't verify it is not a virus". There is a world of difference. – benwiggy Oct 27 '19 at 21:33
  • @benwiggy the subtext sad "macOS kann nicht verifizieren, dass diese App keine Malware enthält." which translates into that, but you are right, the main text was "MacOS cannot verify the identity of this software" – Lukas Oct 29 '19 at 8:06

System Settings -> Security & Privacy -> General -> click 'Allow' (below 'App-Downloads allowed from')


Turns out you have to go into Mac's Security settings and allow the JDK there after your ran it.


This usually happens because it wasn’t registered by an installer, which is why you get the error when you extract a tarball into a system directory but not when you use the pkg. If you want to use an installer package but don’t have a paid oracle subscription for versions above 8 you may have some luck using the supported openjdk which has signed packages on adoptopenjdk’s site.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .