Skip to content

Instantly share code, notes, and snippets.

@DiveInto
Created June 19, 2012 09:52
Show Gist options
  • Save DiveInto/2953320 to your computer and use it in GitHub Desktop.
Save DiveInto/2953320 to your computer and use it in GitHub Desktop.
install sun-java on ubuntu
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
$ sudo apt-get remove openjdk-6-jdk --purge -y
$ sudo apt-get autoremove
sudo update-java-alternatives -s java-6-sun
sudo update-alternatives --config java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment