Currently I am getting issue with new macOS Catalina limitation. Every time I run an app that require openJDK I get this message:
"openjdk-12.0.1.jdk" can’t be opened because it is from an unidentified developer.
Your security preferences allow installation of only apps from the App Store and identified developers.
But if I use the recommended way to bypass this issue (by going to System Preferences → Security & Privacy → General → Open Anyway button) it just opens the JDK folder. Which is not what I want.
How I can use JDK with macOS Catalina?
Best Answer
Open
System Preferences
->Security & Privacy
->General
, there should be a message about the JDK app, clickAllow
.Run the Java-based app again (e.g.: type
java -version
in the Terminal app). A dialog should appear confirming you trust OpenJDK.Source: https://apple.stackexchange.com/a/372235/35845