Install Openjdk7 in Ubuntu 11.10

The “sun-java6” package is no longer available in the official Ubuntu 11.10 Oneiric Ocelot repositories.   Lets  show  you  some  ways  How  to install  java  in your  Ubuntu 11.10



– Install OpenJDK 7.0:

sudo apt-get install openjdk-7-jre

– you can still use Java 6 from the  ferramroberto PPA:

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


Install  Java 7 Browser plugin

All  browsers  are looking   for  java  plgins  under    this  directory   ~/.mozilla/plugins .

a simbolic link for the newly installed Java into the Mozilla plugins directory:

– 32bit:

mkdir -p ~/.mozilla/plugins
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/ ~/.mozilla/plugins/


– 64bit:

mkdir -p ~/.mozilla/plugins
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/amd64/ ~/.mozilla/plugins/
  • Forage

    Why are you calling this article "Install Oracle Java 7…" while the steps you mention install "OpenJDK 7.0" instead?
    It’s just plain wrong, Oracle Java is not the same as OpenJDK.

  • angrydouchebag

    The poster is a fu**ing idiot. This isnt for Oracle java.. fu**ing dumbass

  • conan

    openjdk !!!! what r u thingking about???

  • yourass


  • gggg

    fukin idiot oust malaka

  • Gregory Pierce

    Should also be noted that for development the command is:

    sudo apt-get install openjdk-7-jdk