How to install Java in Ubuntu 11.04 Natty Narwhal [PPA]

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.

You can leave a response, or trackback from your own site.

SUBSCRIBE TO OUR DAILY RSS FEED!

RELATED POSTS

27 Responses to “How to install Java in Ubuntu 11.04 Natty Narwhal [PPA]”

  1. john says:

    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

  2. Adam says:

    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.

  3. John says:

    Well it worked for me without a hitch. Many thanks. – John

  4. Leandro says:

    Muchas pero muchas pero muchas gracias. Es el modo más fácil que encontré para installar Java.

    Thank you Very Very Very Much!!

  5. [...] 1. http://www.multimediaboom.com/how-to-install-java-in-ubuntu-11-04-natty-narwhal-ppa/ [...]

  6. Frank Cox says:

    No window ever comes up for installation.

  7. Leo Soares says:

    Thank you very much, I did only what was in the instruction and it worked.

  8. Leo Soares says:

    Thank you very much,, I did only what was in the instruction and it worked.

  9. Bruno says:

    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

  10. Airan says:

    Consegui instalar tudo.. mas nao sei se consegui clicar no ok.. pois nao aconteceu nada quando eu cliquei no ok…

  11. taunma says:

    adoy tunjon lah den mai…………..:)

  12. [...] Make sure you have sun java installed (see here) [...]

  13. chris perumal says:

    works straight forward.
    thank you very much.

  14. Whit says:

    You don’t have “add-apt-repository” on a system unless you’ve installed “python-software-properties” first.

  15. Joliea says:

    Thanks!!!!!

  16. craig says:

    Hory fuck it works :SD

  17. platyiwings says:

    It is possible to install sun java 6 plug in from Synpatic Package Manager. I tried JDK but failed.

  18. Thomas says:

    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)

  19. Mario says:

    Just install Eclipse….

    sudo apt-get install eclipse

  20. james says:

    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:~$

  21. Vidar says:

    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???

  22. Lorenzo says:

    will you make java packages available for precise 12.04 as well?

Leave a Reply

Popup By Puydi