Skip to content

Instantly share code, notes, and snippets.

@Cameron-C-Chapman
Created January 26, 2014 20:00
Show Gist options
  • Save Cameron-C-Chapman/8638452 to your computer and use it in GitHub Desktop.
Save Cameron-C-Chapman/8638452 to your computer and use it in GitHub Desktop.
Install Oracle JDK on Ununtu
# Installing Oracle (Sun) JDK on Ubuntu
# Before you install it, remove OpenJDK, if you have it installed:
sudo apt-get purge openjdk*
# To install Java 8/7/6, do this:
# Add the PPA:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
# Update the repo index:
sudo apt-get update
# Install Java 8:
sudo apt-get install oracle-java8-installer
# Or, install Java 7:
# sudo apt-get install oracle-java7-installer
# Or, install Java 6:
# sudo apt-get install oracle-java6-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment