Created
July 17, 2014 11:32
-
-
Save kostyaev/0ce65660de5fab3c3b4d to your computer and use it in GitHub Desktop.
Change Java version on Mac OS X
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
vi ~/.bash_profile | |
add | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
This tells your /usr/bin/java link target to use the latest Java 7 Package installed in | |
/Library/Java/JavaVirtualMachines/ | |
So for JDK 1.7.0_17 JAVA_HOME would be: | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment