
I think this is the cleanest & simplest way to go about it.Īnother important thing to note, as mentioned in Mac OS X 10.6.7 Java Path Current JDK confusing :įor different types of JDKs or installations, you will have different Then you can install the version(s) you like: brew install -cask java7Īnd add them to be managed by jenv as usual.

Then you can look at all the versions available: brew search java repeat steps 4 to 6 for each version of java you needĪdd the homebrew/cask-versions tap to homebrew using: brew tap homebrew/cask-versions.check the version is correctly managed by jenv.install a specific java version using cask (see "homebrew-cask versions" paragraph below).jenv to manage the installed versions of javaĪs seen on, these are the steps to follow.homebrew-cask to install the versions of java.

The cleanest way to manage multiple java versions on Mac is to use Homebrew.
