Install Sun Java JDK and JRE on Ubuntu

Just type few lines and install it. First, enable the repository by editing /etc/apt/sources.list. So, open the source list by any test editor

sudo nano /etc/apt/sources.list

Add the following line in it

deb maverick partner

Then save and close the test editor. Keep in your mind that the repository link will be based on your Ubuntu version. My case Ubuntu version was 10.10. Now type following commends

sudo apt-get update
sudo apt-get install sun-java6-jdk

Test that weather JDK is installed properly or not. Just type

java -version

You will get following message in terminal…

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

It’s done. 🙂


Eftakhairul Islam

Hi, I'm Eftakhairul Islam, a passionate Software Engineer, Hacker and Open Source Enthusiast. I enjoy writing about technical things, work in a couple of startup as a technical advisor and in my spare time, I contribute a lot of open source projects.


One thought on “Install Sun Java JDK and JRE on Ubuntu

  1. Exceptional weblog in this article! Also your online site a lot up quick! What hosting company are you the application of? Can I are getting your internet marketer hyperlink with your host? My partner and i desire my site loaded as fast while yours great deal.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Read previous post:
Taste incompatible Add-on in Firefox 4 (Minefield)

Recently, I installed Firefox 4 (codename: Minefield and version: 4.0b13pre) in my pc. I am amazed to see its new...