Installing OpenJDK 11 on MacOS

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)
Advertisements

Published by

m5c

Java developper that loves photography and good coffee

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s