Install Openjdk7 in Ubuntu 11.10


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUpon

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/