LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-05-2012, 01:40 AM   #1
khinmyo
Member
 
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
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi

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

Quote:
#Command to install openjdk from synaptic pacakage manager

sudo apt-get install openjdk
Quote:
#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
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 222

Rep: Reputation: 62
Execute the following commands:

sudo add-apt-repository "deb http://archive.canonical.com/ 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
khinmyo
Member
 
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
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

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

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


.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

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