For some reason, I expected the installation was going to be a bit more complicated on MacOS. It is actually quite easy.
I downloaded the latest MacOS binaries from https://jdk.java.net/11/
I clicked the .tar.gz that I got to decompress it in the jdk-11.0.1.jdk directory.
I moved it to the directory for MacOS to pickup the new version:
sudo mv jdk-11.0.1.jdk /Library/Java/JavaVirtualMachines/
I was done with these steps.
You can test by running:
java -version
and/or
javac -version
to confirm that you see the new version:
openjdk version "11.0.1" 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
With the macOS update 10.15.4, it does not want to run this Java because it can’t identify the publisher. I had to switch to use sdkman to install Java 11.
LikeLike