There are few bells and whistles, but the changes are noticeable and positive. High Sierra emphasizes the already-existing benefits of MacOS previous system, Sierra. Jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66. Yasu For Mac High Sierra 2017 In essence, High Sierra took what was good with Sierra and developed it into a more comprehensive software. Type these commands to register JDKs in jEnv (replace the minor and patch versions with yours): jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/ JEnv doesn’t install JDKs, so we have to tell jEnv where to look for them. Init jenv if which jenv > /dev/null then eval '$(jenv init -)' fi Now it is time to install jEnv: brew install jenvĪdd the following lines to ~/.bash_profile This will initialize jEnv.
To install JDK 9 (latest) brew cask install java Install Java 6, 7, 8, 9 (latest): brew tap caskroom/versions To check JDK 9 (latest) brew cask info java If your brew or cask is outdated, update and upgrade: brew update & brew upgrade brew-cask-completion & brew cleanup & brew cask cleanupĬheck if we already have JDK 6, 7, 8, 9 installed by Homebrew Cask: brew tap caskroom/versions Install Homebrew Cask first if you haven’t: brew update I’m going to use Cask to install Java 7 and 8. On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. Install Multiple Java Versions on macOS High Sierra Install Homebrew Cask