I am looking to install Java on Mac using Homebrew
. This works fine using the command
brew cask install java
.This installs the latest stable version which is currently - 1.8.0_141
However how can I install a specific version for example 1.8.0_131
.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/cask-versions
brew search java
Optional: to find out the minor version of java
brew info --cask java8
brew install --cask java8