September 28, 2010 · General · Email This Post

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 Comments to “How to Install Java Runtime Environment (JRE) in Ubuntu 10.10 (Maverick) using PPA”

  1. Loyl says:

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

    [Reply]

  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.

    [Reply]

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

    [Reply]

  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.

    [Reply]

    Bayou Reply:

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

    [Reply]

  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

    [Reply]

  6. Nishad says:

    Errors were encountered while processing:
    firmware-b43-installer

    [Reply]

  7. Jason says:

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

    [Reply]

  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

    :)

    [Reply]

  9. james says:

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

    [Reply]

  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

    [Reply]

    ensi Reply:

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

    [Reply]

  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.

    [Reply]

  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!

    [Reply]

  13. J.Chumo says:

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

    [Reply]

  14. Syed says:

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

    [Reply]

  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

    [Reply]

  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 :)

    [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]

  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)

    [Reply]

  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

    [Reply]

  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

    [Reply]

  20. ubuntu world says:

    thx a lot brother

    [Reply]

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

    Thanks.

    [Reply]

  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.

    [Reply]

  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

    [Reply]

  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.

    [Reply]

  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

    [Reply]

  26. jonny rocket says:

    after i enabled maverick partner:

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

    in a terminal. works great!

    [Reply]

  27. Evans says:

    I’m not able to start java6 on my ubuntu10.10

    [Reply]

  28. greg says:

    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]

  29. jonny rocket says:

    i put the “*” at the end and presto! works.

    [Reply]

Leave a Reply