Skip to main content
  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap homebrew/cask-versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info --cask java8

  1. install java 8 (or any other version available)

brew cask install --cask java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap homebrew/cask-versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap homebrew/cask-versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew info --cask java8

  1. install java 8 (or any other version available)

brew install --cask java8

added 5 characters in body
Source Link
mavilein
  • 11.7k
  • 4
  • 46
  • 50
  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap caskroomhomebrew/cask-versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap caskroom/versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap homebrew/cask-versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

"brew cask search <package>" is disabled now. New usage is "brew search <package>"
Source Link
  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap caskroom/versions

  1. list available java versions

brew cask search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap caskroom/versions

  1. list java versions

brew cask search java

  1. install java 8

brew cask install java8

  1. Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Update homebrew if already installed:

brew update

  1. allow brew to lookup versions

brew tap caskroom/versions

  1. list available java versions

brew search java

Optional: to find out the minor version of java

brew cask info java8

  1. install java 8 (or any other version available)

brew cask install java8

Source Link
Jubba Smail
  • 1.2k
  • 11
  • 15
Loading