April 30, 2010 · News · Email This Post

For Ubuntu 10.04 LTS, the sun-java6  packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.

If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Sponsored Link

Incoming search terms:

Related posts

22 Comments to “Sun Java moved to the Partner repository in Ubuntu 10.04 (Lucid)”

  1. Jason says:

    If OpenJDK worked better I’d use it, but a lot of Java apps and sites look funny or just plain don’t work with OpenJDK, or at least that’s how it was about 6 months ago.

    [Reply]

  2. heepie says:

    You can also enable it from system->Administration->Software Sources, second tab “other sources” and check the “http://archive.canonical.com/ lucid partner”

    [Reply]

  3. Victor says:

    @Jason: Yes this is my impression as well, which begs the question of why OpenJDK is recommended. By the way, author of this article, where is the reference to the recommendation? It’s so annoying when articles don’t have references. :-/

    [Reply]

  4. Neil Martin says:

    OpenJDK doesn’t load in Epiphany in Lucid at all but Sun works perfectly.

    [Reply]

  5. FezzFest says:

    The command specified doesn’t work in Lucid. Using heepie’s way still works, though.

    OpenJDK is far from really usable here. A lot of java-applets don’t want to load and programs like JDownloader have crippled text and are action weird.

    [Reply]

  6. jon says:

    you must use the basic doubles quotes : “deb http://archive.canonical.com/ lucid partner”

    not sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”

    [Reply]

  7. jon says:

    well, this web page shows wrong double quotes

    [Reply]

    admin Reply:

    I have updated with correct quotes

    [Reply]

  8. Erebus says:

    Problem with OpenJDK and e.g. eclipse IDE is that it’s *much* slower than Sun’s JDK (…).

    [Reply]

  9. Jamie says:

    I’ve ticked the appropriate checkboxes in the software sources dialog (“http://archive.canonical.com/ubunto lucid partner”) but I still can’t see Sun’s Java in the Ubuntu software centre. What am I doing wrong?

    Notice that in my version of Ubuntu ( Ubuntu 10.04 LTS – Lucid Lynx ) the software source is labled
    ‘ubuntu lucid partner’ not simply lucid partner.

    Any help greatly appreciated. I hope to run eclipse, and don’t want to be running with the slow version of openJDK.

    Jamie

    [Reply]

  10. Jamie says:

    Ah, found it in the synaptics package manager. I’m a noob.

    [Reply]

  11. jesse says:

    i dont see sun java either in synaptics? help is appreciated

    [Reply]

  12. Stefan Baramov says:

    I would love to see OpenJDK stable and usable but it is simply not. Just today I found two bugs:
    - cannot handle the junit-frames.xsl
    - cannot compile code with complex generics

    None of this problems exist with sun jdk. What is even worst I spend significant amount of time trying to file a bug with OpenJDK just to find out that http://bugs.openjdk.java.net/ and no signs of coming up :(

    Therefore OpenJDK cannot be default, it should not be default, sorry.

    [Reply]

  13. cray says:

    Yep, already installed

    [Reply]

  14. Hwo cares about my name says:

    This is one of the thing I hate with Linux. This is something that should just work. Java is essential in todays web experience and for Normal people not like me, it is hopeless to get the grip of it.

    Problem with java is one thing, the missing support for encrypted DVDs are another. This is just examples of things that has to be solved before Ubuntu can be a real competitor of systems like windows.

    Reason for nagging is that Ubuntu claims to be the Linux portal for everybody and especially for the windowized part of the community.

    Things like this makes them laugh out loudly.

    [Reply]

  15. trevor says:

    dvd decryption is in the medibuntu site – there because it is licenced differently – but can easily be included in available software

    [Reply]

  16. Jody says:

    Open JDK screwed up all the drop down panes used by other programs like Think Or Swim. The upgrade to Ubuntu 9 and then Ubuntu 10 has been disastrous, especially in the choice of Open JDK vs Sun Java. It is hard to convince people anyone took their testing seriously. Ubuntu will fail if this careless attitude carrues on.

    [Reply]

  17. tantan says:

    my simple java programs fail on open jdk on linux 10.04 .please help

    [Reply]

  18. Arun says:

    To install sun-jdk in 10.04
    1) System – > Administration – > software sources -> other softwares ; check lucid partner line
    2) System – > Administration – > synaptic; reload
    3) find jdk
    4) check sun-java6-jdk
    5) Apply

    [Reply]

  19. Arun says:

    One more point:
    still the java path will be to open-jdk installation. To make sun-jdk as default:

    6) Un-check all open-jdk items in synaptic and apply

    This will result in re-map /etc/alternatives/java to the java-6-sun directory.

    Now, Enter java -version on command prompt.

    You should now get :
    $ java -version
    java version “1.6.0_20″
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

    Well — thats it.

    [Reply]

  20. Kurtosis says:

    @Arun: You don’t need to uninstall OpenJDK in order for SunJDK to become the system default. Just run:

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

    or

    prompt> sudo update-alternatives –config java

    and follow the directions.

    https://help.ubuntu.com/community/Java

    [Reply]

  21. Linuxluver says:

    I can see why they recommend OpenJDK. Oracle now own Sun Java. Sun Java is not open. Oracle aren’t afraid to sue people. If you want a usable, open Java, then best to get behind OpenJDK now and help make it usable – both my reporting bugs and maybe – if you can – by helping to fix the code. Then, at some future point when / if Oracle impose more restrictions on Sun Java….we will be ready and have a well-developed alternative. But we need to think ahead and make this investment now. Or we will find ourselves trapped. Same dilemma we always face with proprietary software.

    [Reply]

Leave a Reply