Suresh Payankannur

Sunday, July 31, 2011

Install Java6 on Ubuntu

Java6 is not available from standard repositories. In order to install Java6, a new repository should be added. In addition, some new packages needs to be installed.

  1. Get additional packages
    sudo apt-get install python-software-properties
  2. Add new repository
    sudo add-apt-repository "deb lucid partner"
  3. Update
    sudo apt-get update
  4. Install Java
    sudo apt-get install sun-java6-jdk
  5. Set JAVA_HOME
    export JAVA_HOME=/usr/lib/jvm/java-6-sun


Post a Comment

Blog Archive

Scroll To Top