Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 03-11-2009
Join Date: Nov 2009
Posts: 583
Install java in ubuntu

I have Ubuntu installed on my PC. I am trying to install java on ubuntu but I can't get it right. So, how to install java on ubuntu. Please explain in details as I an new to Ubuntu.
Reply With Quote
Old 03-11-2009
Dr. V
Posts: n/a
Re: Install java in ubuntu

Below described is one of the way to install java in ubuntu.
Follow these steps

1) Type the command to get the latest version of java
apt-cache search jdk
2) Install Java jdk and jre with apt-get install command
apt-get install sun-java6-jdk sun-java6-jre
3) Ubuntu will auto detect the necessary files and you will see the following on your monitor screen:
Do you want to continue [Y/n]? y
Get:1 http://my.archive.ubuntu.com hardy/main java-common 0.28ubuntu3 [78.2kB]
Get:2 http://my.archive.ubuntu.com hardy/multiverse sun-java6-jre 6-06-0ubuntu1 [6334kB]
Get:3 http://my.archive.ubuntu.com hardy/main odbcinst1debian1 2.2.11-16build1 [66.2kB]
Get:4 http://my.archive.ubuntu.com hardy/main unixodbc 2.2.11-16build1 [289kB]
Get:5 http://my.archive.ubuntu.com hardy/multiverse sun-java6-bin 6-06-0ubuntu1 [27.3MB]
Get:6 http://my.archive.ubuntu.com hardy/multiverse sun-java6-jdk 6-06-0ubuntu1 [9625kB]
85% [6 sun-java6-jdk 3208002/9625kB 33%]
4) After installation is completed jdk and jre will be located at /usr/lib/jvm/java-6-sun-
5) For a shortcut access ubuntu creates a symbolic link to /usr/bin
Reply With Quote
Old 03-11-2009
Join Date: May 2008
Posts: 2,676
Re: Install java in ubuntu

You can also download Java Binary Package and install it. First download the java .bin file for internet, it is easily available. After downloading is completed copy the file to /opt and issue the following command
sudo sh ./jre-6u1-linux-i586-rpm.bin
sudo update-alternatives --config java
(And pick the one you just installed as your default version.)
java -version
If any problem feel free to post again.
Reply With Quote

  TechArena Community > Software > Operating Systems
Tags: , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Install java in ubuntu"
Thread Thread Starter Forum Replies Last Post
How To Install java on Ubuntu 11.10 Krishnaraju Tips & Tweaks 1 24-04-2012 06:14 PM
How to Install Java on Mac Krishnaraju Tips & Tweaks 2 23-04-2012 03:41 PM
Unable to install java in Linux ubuntu 9.10 BluFFMast.ER Operating Systems 3 23-02-2012 04:57 PM
Formula1 vs. Java and Ubuntu 10.04 Firefox Jitisha Operating Systems 4 11-11-2010 11:53 AM
ELOM java console, mounting virtual CDROM from Ubuntu Kaalicharan Operating Systems 6 23-07-2010 06:01 AM

All times are GMT +5.5. The time now is 09:16 AM.