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 :
- First of all lets open Synaptic Package Manager .

- Search for ‘JDK’ or ‘open jdk’ in the quick search bar.
- Then select the package for installation by checking the small square box .
Do click on ok, if it asks for dependencies. - 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
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-pluginThanks 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:
- How to install Google Chrome on Ubuntu 11.10 using Ubuntu Software Center or Terminal?
- Learn All of Ubuntu 11.04 Natty Narwhal’s(Linux) Keyboard Shortcuts
- How to install Google Chrome in Fedora 15?
- Ubuntu One:Free Online Storage
- Awesome Ubuntu Wallpapers

I haven’t used Ubuntu as yet. BTW nice info once again.
I have install jdk through steps provided . And javac command is also working fine, But how we can fine it that where it is installed and how to set the java class path(JAVA_HOME).