Last active
November 21, 2015 14:02
-
-
Save zouzias/4c9a353b5ff57628f6d8 to your computer and use it in GitHub Desktop.
How to set JAVA_HOME to Java7 or Java8 on MacOs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Download JDK7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
2) On your ~/.bash_profile do | |
# For Java 7 | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
# For Java 8 | |
export JAVA_HOME=`/usr/libexec/java_home` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment