Upgrading to macOS 10.15.4 causes “jdk-11.0.2.jdk” developer cannot be verified error

I recently upgraded my laptop to macOS 10.15.4 and now Java will not run from the command line (or anywhere else from what I can tell) I just see this error message:

“jdk-11.0.2.jdk” cannot be opened because the developer cannot be verified

enter image description here

0

3 Answers

Try this:

  1. Run Java from the command line and click "Cancel" on the warning
  2. Go to Apple Menu > System Preferences > Security and Privacy > General tab
  3. You should see a button near the bottom of the window allowing you to open Java anyway.

You should only have to do these steps once.

3

Solved this by using this answer.

  1. Disable the macOS Gatekeeper:

    sudo spctl --master-disable
  2. Run the apps that you need to have access to that JDK.

  3. Re-enable the macOS Gatekeeper:

    sudo spctl --master-enable

It appears that the permission to open those apps, and verify the developer, is remembered.

4

I had to run java from the command line in order to trigger the button in in Security and Privacy to appear when it allowed jdk tools like java and javac to run permanently.

The part that was tripping me up was if I ran the program from Iterm2 which is how I normally run command lines it did not work. I had to run from the built in terminal.

Maybe this is because I am still on bash instead of zsh? At any rate if you run Iterm2 and are having this problem try from the normal system terminal.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like