Here is a simple guide to install Java in Ubuntu 11.04 Natty Narwhal via PPA. In Natty the previous versions of Java will be integrated into the Canonical Partner Repository by default. To date there are no Canonical Partner Repository available, so if you want to install Java on Ubuntu 11.04 Natty you have to go for other alternatives.
The best solution is to use this PPA for more further Java updates. To install Java in Ubuntu 11.04 Natty Narwhal, open a Terminal and type :
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
During the installation press ‘OK’ in the screen that appears within the Terminal (see the below screenshot). You can do so by navigating using the ‘Tab’ key and once ‘OK’ is highlighted in red, press ‘Enter’.
If you have any problems related to installation please let us know. Subscribe to our feeds or Follow us on Facebook and Twitter for more updates.


Posted in
Tags: 







this works better:
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives –config java
But it gives glitch while installing in Natty ’cause it is designed for Lucid.
You can use natty repository instead:
sudo apt-add-repository “deb http://archive.canonical.com/ natty partner”
… it works fine
Yes, you can do that
[...] Fonte: MultimediaBoom [...]
one thing I found was after installing with the above method, I couldn’t chat or play games in Chrome. The solution was simply to go to Chrome Preferences, and allow pop ups.
It was the pop up blocker in Chrome that wouldn’t open the chat window, not the fact that Java wasn’t installed.
Well it worked for me without a hitch. Many thanks. – John
Muchas pero muchas pero muchas gracias. Es el modo más fácil que encontré para installar Java.
Thank you Very Very Very Much!!
[...] 1. http://www.multimediaboom.com/how-to-install-java-in-ubuntu-11-04-natty-narwhal-ppa/ [...]
No window ever comes up for installation.
Thank you very much, I did only what was in the instruction and it worked.
Thank you very much,, I did only what was in the instruction and it worked.
Works thanks! Just reposting the code with the right characters (single quotes and minus)
sudo apt-add-repository ‘deb http://archive.canonical.com/ natty partner’
sudo apt-get update
sudo update-alternatives –config java
Consegui instalar tudo.. mas nao sei se consegui clicar no ok.. pois nao aconteceu nada quando eu cliquei no ok…
adoy tunjon lah den mai…………..:)
[...] Make sure you have sun java installed (see here) [...]
works straight forward.
thank you very much.
You don’t have “add-apt-repository” on a system unless you’ve installed “python-software-properties” first.
Thanks!!!!!
Hory fuck it works :SD
It is possible to install sun java 6 plug in from Synpatic Package Manager. I tried JDK but failed.
Just running sun java 6 is fine with that procedure.
when i type in the second and third commands it says –
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
and
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
Just install Eclipse….
sudo apt-get install eclipse
Got to the screen and used tab to red highlight OK.
Then the following came up.
What to do next?
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
owner@ubuntu:~$
Who cares if it works straight forward,, The tip is fine, but ubuntu should have solved this loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong ago. People need java in their webbrowser and a ready made solution built in or a install selection should have been given you the option to install sun java. Why this stupid mess with doing it after???
will you make java packages available for precise 12.04 as well?