Created
October 24, 2012 19:11
-
-
Save aslakhellesoy/3948187 to your computer and use it in GitHub Desktop.
Switch between java 6 and 7 versions after Apple removed Java Jreferences
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
| #!/bin/sh | |
| cd /System/Library/Frameworks/JavaVM.framework/Versions && sudo mv Current Current.bak && sudo ln -s CurrentJDK Current | |
| java -version |
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
| #!/bin/sh | |
| cd /System/Library/Frameworks/JavaVM.framework/Versions && sudo rm Current && sudo mv Current.bak Current | |
| java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment