Created
August 26, 2013 19:52
-
-
Save dylants/6345863 to your computer and use it in GitHub Desktop.
Determine which version of Java you have running / Change the version of Java (these directions are for a Mac)
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
To list the Java versions installed on your machine (note the big V): | |
/usr/libexec/java_home -V | |
To change the version of Java (note the small v): | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.6` | |
The default JAVA_HOME is: | |
export JAVA_HOME=/Library/Java/Home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment