Skip to content

Instantly share code, notes, and snippets.

@ddura
Created August 4, 2011 20:46
Show Gist options
  • Save ddura/1126221 to your computer and use it in GitHub Desktop.
Save ddura/1126221 to your computer and use it in GitHub Desktop.
Replacing OpenJDK Java with Oracle Java on Ubuntu
# Uncomment the lines that reference the partner repository
sudo nano /etc/apt/sources.list
# Once the lines are uncommented, update apt-get
sudo apt-get update
# Install the 'Sun' Java JDK
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
# Update Ubuntu to use the alternatives
sudo update-java-alternatives -s java-6-sun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment