Since August of last year, Canonical and others and were no longer permitted to redistribute Java in Ubuntu under the current license agreement and as such, remove all Java packages from its repository. Now, since Java is no longer redistributed by Ubuntu, most installations now must be done through external sources.
In most instances, you wouldn’t need to install Sun Java, as Ubuntu come with an open-source version called OpenJDK which Oracle supports. OpenJDK isn’t perfect and if you still depend on Sun Java for other reasons, then continue below to find how to install it.
Install Sun Java in Ubuntu 11.10
Press Ctrl – Alt – T to open Terminal. First of all you should remove openJDK from your system if you already have it.
- sudo apt-get purge openjdk*
Add the PPA to your system
- sudo apt-add-repository ppa:flexiondotorg/java
Run the command below to update your system.
- sudo apt-get update
Finally, install Java and its plugins
- sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
Enjoy...!!!!!
Post a Comment