Skip to content

Instantly share code, notes, and snippets.

@developerinlondon
Created February 5, 2014 15:52
Show Gist options
  • Save developerinlondon/8826620 to your computer and use it in GitHub Desktop.
Save developerinlondon/8826620 to your computer and use it in GitHub Desktop.
installing java 7
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