Are there any issues what so ever with running Eclipse with OpenJDK under Linux?

10,786

Solution 1

Now OpenJDK 7 is a standard implementation of Java. Oracle JDK 7 is built on openjdk7 code, except some additional features, which are not included in Java specification

So there should not be a performance difference(I can not see it). Ubuntu 11.10 has openjdk7 in the repository.

Otherwise Openjdk6 is really slower then SunJDK6. So if you need to use jdk6, it is better to switch to Sun JDK6

Solution 2

I've had quite a lot of problems with various plugins (Android Update) using the openjdk6 on Ubuntu 11.10. Sun JRE 'just fixed' the problems.

I can't just update to java 7 because I'm working with android open source (AOSP) which does not support compilation with java 7 yet. It only somewhat supports building with openjdk6.

Sometimes the bleeding edge is just bleeding. For now I'm staying with Sun JDK 6. Its the reference implementation and appears to 'just work'. Which is what I'm going for. These are tools for me, my primary purpose here is not to debug my tools before use.

Kudos for the OpenJDK folks for being 99.9% there. Once everyone else catches up with them life will be great.

Oh and Oracle can stuff-it for the license change that caused many of these problems. Larry does not need another boat.

-JZ

Share:
10,786
matbrgz
Author by

matbrgz

~50 milliskeet Senior Developer currently doing CI-CD related work at https://www.ufst.dk/ CV/resume: https://ravn.github.io/cv/ Smallest Hello World program I could write using the Dagger 2 dependency injection framework: https://github.com/ravn/dagger2-hello-world Smallest "Inject configuration strings with @Named" I could write using the Dagger 2 dependency injection framework: https://github.com/ravn/dagger2-named-string-inject-example Adding logging at class load time with instrumentation: An article I wrote way back for java.net to demonstrate what Java agents could help with.

Updated on June 18, 2022

Comments

  • matbrgz
    matbrgz almost 2 years

    NOTE: This question is from 2014. As of 2019 the situation is different. OpenJDK is underlying all the various distributions, and should behave the same for all.


    The standard cure for fixing Java problems with Linux distributions like Ubuntu is to say "Use the Sun JDK instead of OpenJDK". For several reasons I'd like to just use the Java shipping with Ubuntu instead of having to install and download from partner repositories or download tarballs.

    I have played some with Eclipse 3.7.1 under Ubuntu 11.10 and not found any glaring showstoppers.

    Question is: Is there anything not working correctly with the default installation of (EDIT: OpenJDK) Java on Ubuntu at all, or is there something I should look out for?

  • matbrgz
    matbrgz over 12 years
    When was the last time you ran into trouble with OpenJDK?
  • matbrgz
    matbrgz over 12 years
    "should not" is a bit vague. Can you elaborate?
  • Shivan Dragon
    Shivan Dragon over 12 years
    When building my JPA2 & Hibernate 3.6 & CDI & EJB 3.1 Glassfish project under Fedora 10 with Glassfish 3. I've spend 30 minutes trying to figure out how to fix it, finally switched to Oracle JDK 6 update 20+ and it worked ok. Also on windows i didn't get the error with Oracle JDK. I had similar issues with JRockIt on Windows.
  • matbrgz
    matbrgz over 12 years
    I was merely looking for an approximate date. But so your environment apparently only runs correctly with the Sun JVM in the first place. May be hard to find - there is an AIX release now of Glassfish which do not have Sun JVM dependencies.
  • Andrii Radyk
    Andrii Radyk over 12 years
    Now OpenJDK 7 is a standard implementation of Java. Oracle JDK 7 is build on openjdk7 code, except some additional features, which are not included in Java specification. I do not see any differences in performance for these versions.
  • matbrgz
    matbrgz over 11 years
    You can compile for Java 6 with Java 7