Created
November 4, 2014 13:10
-
-
Save igilham/0bda13dcdc16233d7f79 to your computer and use it in GitHub Desktop.
Update Java Version on Mac OS X
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
#!/bin/sh | |
# assuming you just installed Oracle JDK7 in '/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk' | |
cd /System/Library/Frameworks/JavaVM.framework/Versions | |
sudo mv CurrentJDK JDK6 | |
# the version number must match the installed version | |
sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk /Library/Java/JavaVirtualMachines/jdk1.7.0 | |
sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0/Contents JDK7 | |
sudo ln -s JDK7 CurrentJDK | |
sudo cp -r JDK6/Commands JDK7/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment