Install sun Java 6 in ubuntu 11.10 using PPA
Sun Java 6 packages are being removed from Ubuntu in the near future for the following reasons:
-- As of August 24th 2011, Canonical no longer have permission to redistribute new Java packages as Oracle has retired the "Operating System Distributor License for Java".
-- Oracle has published an advisory about security issues in the version of Java currently in the partner archive. Some of these issues are currently being exploited in the wild.
-- Due to the severity of the security risk, Canonical released a security update for the Sun JDK browser plugin which disables the plugin on all machines.
-- In the near future, Canonical will remove all Sun JDK packages from the Partner archive. This will be accomplished by pushing empty packages to the archive, so that the Sun JDK will be removed from all users machines when they do a software update. Users of these packages who have not migrated to an alternative solution will experience failures after the package updates have removed Oracle Java from the system.
Install sun Java 6 using PPA
Open the terminal and run the following commands
sudo apt-add-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
Is this going to work past this month? I heard Cannoncial took down the other PPA that had Java 6 packages… Who should we believe??? What the proper way to install Sun Java 6??? So freaking confusing.. 🙁
A new way to install Sun / Oracle Java is described here:
I did all that, and then ran
and it still said that my java was openJDK, anyone know how to I switch it?
sudo update-alternatives –config java
then choose the option that looks like:
* 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode