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

You may also like...

35 Responses

  1. Loyl says:

    Why install Sun, Oups Oracle JVM instead of the default Ubuntu JVM : openjdk ?

  2. Josh says:

    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.

  3. ggosain says:

    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:~$

  4. Cmt says:

    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.

  5. John says:

    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

  6. Nishad says:

    Errors were encountered while processing:
    firmware-b43-installer

  7. Jason says:

    I get,
    E: Broken packages
    Have you guys been able to work around this?

  8. Majed Sahli says:

    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

    🙂

  9. james says:

    I still can’t get the damn java installed. Anyone knopw hoe?

  10. Benjamin says:

    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

  11. Sean says:

    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.

  12. Sean says:

    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!

  13. J.Chumo says:

    sudo apt-get install sun-java6-jre sun-java6-plugin

  14. Syed says:

    Yeah, now I can use Java and my favorite site. Minecraft. 😀

  15. ghouse says:

    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

  16. 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 🙂

  17. George says:

    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)

  18. Bill says:

    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

  19. mdmd says:

    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

  20. ubuntu world says:

    thx a lot brother

  21. The tip provided by Venkatesh Gandhi worked. 🙂 Please update the original post to reflect the same.

    Thanks.

  22. Ido Schacham says:

    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.

  23. Ahmad Miftah says:

    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

  24. hamid says:

    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.

  25. yigitk says:

    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

  26. M. Gadd says:

    thanks dude!
    it helped 🙂

  27. Bayou says:

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

  28. jonny rocket says:

    after i enabled maverick partner:

    “sudo apt-get install sun-java6-jre sun-java6-plugin”

    in a terminal. works great!

  29. millerwjr says:

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

  30. Prasad says:

    Thanks dude..

    [Just include the * at the end ]

    thanks for that

Leave a Reply

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