How to Install Java Runtime Environment (JRE) in Ubuntu 10.10 (Maverick) using PPA

Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution.

The language itself derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. JavaScript, a scripting language, shares a similar name and has similar syntax, but is not directly related to Java.

Install java in ubuntu 10.10

Open the terminal and run the following commands

sudo add-apt-repository ppa:sun-java-community-team/sun-java6

sudo apt-get update

sudo apt-get install sun-java6

Ubuntu 10.04(Lucid) users also can install java using this PPA

Sponsored Link

Incoming search terms:

Related posts

35 thoughts on “How to Install Java Runtime Environment (JRE) in Ubuntu 10.10 (Maverick) using PPA

  1. Some programs just will not work with openjdk. I utilize a program called AirControl for managing Ubiquiti Wireless Access Points and Client gear. It will only function with the Sun (Oracle) Java installed. I’m sure there are other programs as well.

    [Reply]

  2. Get:31 http://us.archive.ubuntu.com maverick-updates/main i386 Packages [16.7kB]
    Get:32 http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages [14B]
    Get:33 http://us.archive.ubuntu.com maverick-updates/universe i386 Packages [3,978B]
    Get:34 http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages [14B]
    Fetched 12.8MB in 44s (287kB/s)
    Reading package lists… Done
    ggosain@ubuntu:~$ sudo apt-get install sun-java6
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package sun-java6
    ggosain@ubuntu:~$

    [Reply]

  3. first, search the real name of package
    $sudo apt-cache search java
    …. searchingg,, and the name to installer is

    sun-java6-jre

    $sudo apt-get install sun-java6-jre

    it’s all.

    [Reply]

    Bayou Reply:

    Thanks a million! Finally found this solution after searching for almost an hour! :)

    [Reply]

  4. Still can make it work…

    john:~$ sudo apt-get install sun-java6-jre sun-java6-bin
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies.
    sun-java6-bin : Depends: unixodbc but it is not installable
    sun-java6-jre : Depends: java-common (>= 0.24) but it is not installable
    Recommends: gsfonts-x11 but it is not installable
    E: Broken packages

    [Reply]

  5. Worked just fine.. thanks!

    You should also mention that once installed, to be used by default one needs to set it to be so..

    This is done by running:

    sudo update-java-alternatives -l

    ((find out the name eg java-6-sun)) and then run:

    sudo update-java-alternatives -s java-6-sun

    ((check the current default java version))

    java -version

    :)

    [Reply]

  6. I’m using Ubuntu 10.10 and I followed what you guys said regarding

    sudo add-apt-repository ppa:sun-java-community-team/sun-java6

    and it tells me theres 1 process and one unchaged process, but when i type

    sudo apt-get update

    it tells me E: some files failed to download and they have been ignored, or old ones have been used instead

    this message was preceeded by a load of 404 not found codes.

    im fairly new to this so any help is papreciated

    [Reply]

    ensi Reply:

    me too i have this prblm, di you have any solition plizz

    [Reply]

  7. I have tried to install Sun Java 6 Runtime on 10.10 also… and it fails. I have managed to install OpenJDK – but not Sun Java… there has to be a FIX for this.

    [Reply]

  8. I got mying to work! I changed the location of where the software was downloading from.

    Applications > Ubuntu Software Centre > Edit > Software Sources

    Mying was defaulted to Canada!! So I changed it to Main Server… now all is GOOD!!!

    Installing Sun Java Runtime as we speak through Terminal – awesome!! Try this ~ it worked for me!

    [Reply]

  9. Get:31 http://us.archive.ubuntu.com maverick-updates/main i386 Packages [16.7kB]
    Get:32 http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages [14B]
    Get:33 http://us.archive.ubuntu.com maverick-updates/universe i386 Packages [3,978B]
    Get:34 http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages [14B]
    Fetched 12.8MB in 44s (287kB/s)
    Reading package lists… Done
    ggosain@ubuntu:~$ sudo apt-get install sun-java6
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package sun-java6

    [Reply]

  10. sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    sudo apt-get update
    sudo apt-get install sun-java6*

    Just include the * at the end :)

    [Reply]

    M. Gadd Reply:

    thanks dude!
    it helped :)

    [Reply]

    millerwjr Reply:

    You… Are AWESOME! Finally got this to work. Thank you!

    [Reply]

    Prasad Reply:

    Thanks dude..

    [Just include the * at the end ]

    thanks for that

    [Reply]

  11. I will be damned … I was searching about 10 hours to find that my mistake was only the “*” on the end of line … thx all, specialy to Ghandi…
    (Ubuntu 10.10)

    [Reply]

  12. hey guys this is what i tried:
    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    sudo apt-get update
    sudo apt-get install sun-java6*

    It says the following at the end:

    The following packages have unmet dependencies:
    sun-java6-bin : Depends: unixodbc but it is not going to be installed
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

    Anyone has an idea how to fix this? (ubuntu10.10) thanks

    [Reply]

  13. yes, I just had the same prob. somehow my main repository was mysteriously disabled.

    plz check your souces.list with synaptic, software center or the like and make sure main is enabled.

    HTH

    [Reply]

  14. Bill’s asterisk solution worked for me as well, thanks man!

    Post author – could you please update the post with his info? It would really help users in the future.

    [Reply]

  15. try this. i got this from other link and worked for me
    $sudo apt-cache search java
    …. searchingg,, and the name to installer is
    sun-java6-jre
    $sudo apt-get install sun-java6-jre

    hope worked?

    Miftah

    [Reply]

  16. root@vmd1198:~# /etc/init.d/cardproxy.sh start
    Starting : Cardservproxy [ FAILED ]
    Startup failed: Unsupported java vm ‘OpenJDK 64-Bit Server VM’, only the original sun vm has been tested with csp.

    [Reply]

  17. I just fix my problem by changing synaptics package manager settings, assigned the software center as main (instead of U.S.) as mentioned above.

    Thanks Sean and mdmd

    [Reply]

  18. everything works fine but its old version ( 1.6.0_21 ) i must install _31, any idea how to :)

    [Reply]

    Evans Reply:

    Install netbeans, It will install everything.

    //copy the command in the terminal

    sudo apt-get netbeans

    [Reply]

Leave a comment

Your email address will not be published. Required fields are marked *