Installing Java6 JDK on Ubuntu 11.10

UPDATE: To install on 12.04 (Precise Pangolin) you need a different PPA.

Since sun-java6-jdk has been removed from the default Ubuntu 11.10 (Oneiric Ocelot) repositories you need to add a PPA repository (unless you want to install by hand)

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

38 thoughts on “Installing Java6 JDK on Ubuntu 11.10

  1. Pingback: Using Blackboard Collaborate (Elluminate) on Ubuntu | digital nomad

  2. if you get any error then try after follow command
    sudo add-apt-repository ppa:ferramroberto/java

    then run this
    apt-get install python-software-properties
    and now
    sudo add-apt-repository ppa:ferramroberto/java

  3. yo tras añadir el repo, tube que editar el fichero .list para borrar la 3º lista.

    sudo nano /etc/apt/sources.list.d/ferramroberto-java-oneiric.list

  4. while i am updating managers this is the error i am facing can one please help me..

    jnias@jnias-desktop:/$ sudo apt-get update
    E: Malformed line 99 in source list /etc/apt/sources.list (dist parse)
    E: The list of sources could not be read.

  5. @monica Your /etc/apt/sources.list file has something wrong if you read the error message. Check line 99 of that file.

  6. Pingback: Java not working in Ubuntu 11.10

Leave a Reply