Created
February 5, 2014 15:52
-
-
Save developerinlondon/8826620 to your computer and use it in GitHub Desktop.
installing java 7
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
1. download new java from oracle site: | |
https://java.com/en/download/installed.jsp | |
2. unlink the symlink of java then link to the new location: | |
sudo rm /usr/bin/java | |
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java | |
3. update the environment variable by adding this to .bashrc: | |
export JAVA_HOME='/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment