Java download for mac os x 10.4 11


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

Install


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:


Free Java Download For Mac

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


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
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.

Download Java 11 Openjdk For Mac

Opinions expressed by DZone contributors are their own.