-
-
Save djnesmith/7750268 to your computer and use it in GitHub Desktop.
This file contains 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
$ /usr/libexec/java_home -v '1.6*' | |
=> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
$ export JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" | |
$ java -version | |
=> java version "1.6.0_37" | |
=> Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) | |
=> Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) | |
$ /usr/libexec/java_home -v '1.7*' | |
=> /Library/Java/JavaVirtualMachines/jdk1.7.0_12.jdk/Contents/Home | |
$ export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_12.jdk/Contents/Home" | |
$ java -version | |
=> java version "1.7.0_12-ea" | |
=> Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b06) | |
=> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b27, mixed mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment