Skip to content

Instantly share code, notes, and snippets.

@ssoto
Last active August 29, 2015 13:56
Show Gist options
  • Save ssoto/2a47b484127dc5d96190 to your computer and use it in GitHub Desktop.
Save ssoto/2a47b484127dc5d96190 to your computer and use it in GitHub Desktop.
# add the ubuntu sources
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
#install the oracle java7
apt-get update
apt-get install oracle-java7-installer
#update alternatives
update-alternatives --config java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment