How to Install jdk on Ubuntu 11.04 Natty Narwhal ?

     

Today we are going to Install Java Development kit and JRE on Ubuntu(Linux) 11.04 Natty Narwhal.

Following are quick steps to install  Java Development Kit (JDK) on Ubuntu 11.04 using Synaptic Package Manager :

  1. First of all lets  open Synaptic Package Manager .
    jdk jre installation in ubuntu 11.04
  2. Search for ‘JDK’ or ‘open jdk’ in the quick search bar.
  3. Then select the package for installation by checking the small square box .
    Do click on ok, if it asks for dependencies.
  4. Now you got to  click on ‘Apply’ button to begin the installation procedure.  Do wait for the installation to complete.

That’s All ! You have sucessfully installed JDK on Ubuntu 11.04 Natty Narwhal.
So as to verify,

  • open Terminal (CTRL+ALT+T)
  • Type javac, you would be shown details about Java Compiler.

You can also Install JDK from command Line

Open Terminal and enter the following command(s), then enter your ubuntu login password followed by ‘y’ when prompted for yes/no.

sudo apt-get install openjdk-6-jdk

Also you can also Install JRE from command Line

Open Terminal and enter the following command(s), then enter your ubuntu login password followed by ‘y’ when prompted for yes/no.

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin

Thanks to Binoy Xaviers for the code to install via PPA using Command Line.

So when are you installing JRE/JDK in Ubuntu 11.04 Natty Narwhal ? Still need any help?? Then do let us know through comments!

Related posts:

  1. How to install Google Chrome on Ubuntu 11.10 using Ubuntu Software Center or Terminal?
  2. Learn All of Ubuntu 11.04 Natty Narwhal’s(Linux) Keyboard Shortcuts
  3. How to install Google Chrome in Fedora 15?
  4. Ubuntu One:Free Online Storage
  5. Awesome Ubuntu Wallpapers