LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install java on ubuntu 10.0.4 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-java-on-ubuntu-10-0-4-a-4175430627/)

khinmyo 10-05-2012 01:40 AM

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!!

jsaravana87 10-05-2012 01:52 AM

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

rosehosting.com 10-05-2012 02:59 AM

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

khinmyo 10-06-2012 03:37 AM

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

rosehosting.com 10-06-2012 03:44 AM

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

java -version

knudfl 10-06-2012 03:50 AM

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

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


.


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