Skip to content

Instantly share code, notes, and snippets.

@switchspan
Forked from JeOam/Java.md
Created June 14, 2018 18:52
Show Gist options
  • Save switchspan/a16204abc9dd5ce5019f4fb3881ae111 to your computer and use it in GitHub Desktop.
Save switchspan/a16204abc9dd5ce5019f4fb3881ae111 to your computer and use it in GitHub Desktop.
Install Java 8 on OS X

on El Capitan, after installing the brew...

$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java

And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/

Check version:

$ java -version 
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment