Created
February 8, 2012 19:16
-
-
Save ekoontz/1772396 to your computer and use it in GitHub Desktop.
Make Sun/Oracle's java the default rather than OpenJDK
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
#do all as root: | |
#(download and install jdk-6u26-linux-amd64.rpm from Oracle) | |
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1500 | |
alternatives --set java /usr/java/latest/bin/java | |
alternatives --install /usr/lib/jvm/jre-1.6.0 jre_1.6.0 /usr/java/latest 1500 | |
alternatives --set jre_1.6.0 /usr/java/latest | |
alternatives --install /usr/lib/jvm/jre jre /usr/java/latest 1500 | |
alternatives --set jre /usr/java/latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment