Using Brew install all the major version of Java All without having to restart the shell! The more observant of you will notice I used the keyword global. This sets to the default version. You can also use the keyword local which fixes the java version… more »