Skip to content

Instantly share code, notes, and snippets.

@tomysmile
Forked from JeOam/Java.md
Created May 18, 2017 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomysmile/ec0cb8ed7a46719df42ca81bb91823c8 to your computer and use it in GitHub Desktop.
Save tomysmile/ec0cb8ed7a46719df42ca81bb91823c8 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