Openjdk 11 Download Mac Installer


To switch between JDKs, use /usr/libexec/java_home -v version (e.g. 10):


Knowing that your available JDKs are installed to /Library/Java/JavaVirtualMachines/ by default, moving the contents of the downloaded OpenJDK 11 dir from inside the .gz file to the same location would make sense.

Once you’ve moved it there, java_home -V now shows the new JDK in place:


Openjdk 11 Download Mac Download

Updating my aliases to quickly switch versions in my .bash_profile, I now have:

Openjdk 11 Download Mac Os


Sourcing the .bash_profile (source .bash_profile) and then running each alias, now I’ve got OpenJDK 11 set up and ready to go!


java,jdk 11,mac os,tutorial,java 11,installation
Openjdk 11 Download Mac
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.