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.

Revisions

  1. DiveInto created this gist Jun 19, 2012.
    12 changes: 12 additions & 0 deletions install-java.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    $ 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