Sun Java moved to the Partner repository in Ubuntu 10.04 (Lucid)

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 lucid partner"

Sponsored Link

You may also like...

22 Responses

  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.

  2. heepie says:

    You can also enable it from system->Administration->Software Sources, second tab “other sources” and check the “ lucid partner”

  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. :-/

  4. Neil Martin says:

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

  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.

  6. jon says:

    you must use the basic doubles quotes : “deb lucid partner”

    not sudo add-apt-repository “deb lucid partner”

  7. jon says:

    well, this web page shows wrong double quotes

  8. admin says:

    I have updated with correct quotes

  9. Erebus says:

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

  10. Jamie says:

    I’ve ticked the appropriate checkboxes in the software sources dialog (“ 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.


  11. Jamie says:

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

  12. jesse says:

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

  13. 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 and no signs of coming up 🙁

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

  14. cray says:

    Yep, already installed

  15. 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.

  16. trevor says:

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

  17. 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.

  18. tantan says:

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

  19. 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

  20. 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.

  21. 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


    prompt> sudo update-alternatives –config java

    and follow the directions.

  22. 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.

Leave a Reply

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