Last active
December 31, 2015 07:39
-
-
Save garystafford/7955810 to your computer and use it in GitHub Desktop.
Code for blog post, 'Updating Ubuntu with the Latest Java JDK': http://wp.me/p1RD28-Wq
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
# find a higher priority number | |
update-alternatives --display java | |
# install new version of java | |
sudo update-alternatives --install /usr/bin/java java \ | |
/usr/lib/jvm/jdk1.7.0_45/jre/bin/java 4 | |
# configure new version of java | |
update-alternatives --config java | |
# select the new version when prompted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment