Results 1 to 3 of 3

Thread: Install java in ubuntu

  1. #1
    Join Date
    Nov 2009

    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.

  2. #2
    Dr. V Guest

    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 hardy/main java-common 0.28ubuntu3 [78.2kB]
    Get:2 hardy/multiverse sun-java6-jre 6-06-0ubuntu1 [6334kB]
    Get:3 hardy/main odbcinst1debian1 2.2.11-16build1 [66.2kB]
    Get:4 hardy/main unixodbc 2.2.11-16build1 [289kB]
    Get:5 hardy/multiverse sun-java6-bin 6-06-0ubuntu1 [27.3MB]
    Get:6 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

  3. #3
    Join Date
    May 2008

    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.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts