Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active December 31, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/7955810 to your computer and use it in GitHub Desktop.
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
# 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