Last active
October 23, 2015 10:46
-
-
Save tonythell/e891f1ceccf58971cfac to your computer and use it in GitHub Desktop.
oracle_java_linux_alternatives
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
| # Untar Oracle tarball under /opt/jdk. | |
| # Create 'latest' symlink to the latest (or whatever) JDK version directory. | |
| $ sudo alternatives --install /usr/bin/java java /opt/jdk/latest/bin/java 2 | |
| $ sudo alternatives --set java /opt/jdk/latest/bin/java | |
| $ sudo alternatives --install /usr/bin/javac javac /opt/jdk/latest/bin/javac 2 | |
| $ sudo alternatives --set javac /opt/jdk/latest/bin/javac | |
| $ sudo alternatives --install /usr/bin/javaws javaws /opt/jdk/latest/bin/javaws 2 | |
| $ sudo alternatives --set javaws /opt/jdk/latest/bin/javaws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment