Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2012, 01:40 AM   #1
Registered: Aug 2012
Posts: 37

Rep: Reputation: Disabled
how to install java on ubuntu 10.0.4

Hello all,

Please help me how to install java on ubuntu 10.0.4!!!!
And I want to know what java version should be install in ubuntu 10.0.4.

Please guide me!!
Old 10-05-2012, 01:52 AM   #2
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled

# you can find java in synaptic package manager in ubuntu 10.04.

#Command to install openjdk from synaptic pacakage manager

sudo apt-get install openjdk
#Command to install sunjdk from synaptic pacakage manager

apt-get install sun-java6-jdk
1 members found this post helpful.
Old 10-05-2012, 02:59 AM   #3
Registered: Jun 2012
Posts: 222

Rep: Reputation: 62
Execute the following commands:

sudo add-apt-repository "deb lucid partner"
sudo apt-get update

Then, you can install sun java packages using the following command:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Old 10-06-2012, 03:37 AM   #4
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thank You for your helping !!
Next , I want to know how I know if java installation is successful?
Please guide me sir!!
Of course , I want to install topology creator (NSG2) for ns2.
So, java must be installed to use NSG2!!
Please help me in detail.

Best regard,
Khin Myo
Old 10-06-2012, 03:44 AM   #5
Registered: Jun 2012
Posts: 222

Rep: Reputation: 62
You can verify the availability of Java by executing the following command:

java -version
Old 10-06-2012, 03:50 AM   #6
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,281

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
And : You can select version, if you installed more than one :

sudo apt-get update-alternatives --config java
... Then select "openjdk" or "sun-java6".



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] install java on ubuntu CSharpguy Linux - Desktop 1 06-30-2011 02:31 AM
how to install java in ubuntu 9.10 kumar116 Linux - Software 3 05-23-2010 09:53 AM
Created USB bootable Ubuntu persistent install Cant install Java murph98 Linux - Newbie 3 05-26-2008 07:09 AM
Install Java on UBUNTU vr76413 Ubuntu 4 06-04-2007 02:46 PM
Install Java on Ubuntu tfm1 Linux - Software 1 06-26-2006 11:47 AM

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration