Live data from Hacker News

AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

adoptopenjdk.net

21–30 of 91 posts

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#21
post #4

Anyone ever tried the Eclipse OpenJ9 VM? I've never heard of it, but it might be fun to see if there's a difference with my various apps and performance in an IDE. I've just been hearing a lot of fuss about GraalVM, though haven't had time to investigate what's so special about it nor how it might help typical 'enterprise' services and Java apps.

Yes, as part of Websphere.

It was quite good in the past and one of the first to support JIT caching.

Never used it after it went open source though.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#22

Does the OpenJDK project not offer open source, pre-built binaries already?

No. It's a source-only project. Various companies and organization provide both certified and uncertified builds. There are certified builds from Oracle, Red Hat, SAP, Azul (Amazon and Alibaba provide builds of OpenJDK forks), and uncertified builds from Adopt (that also provides OpenJ9 distributions, which are very much not OpenJDK).

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#23

You don't need extra projects to manage this stuff anymore. There is a great answer here... https://stackoverflow.com/questions/52524112/how-do-i-instal... brew install java (12) brew install java11 And you can simplify things... In your .bashrc: export JDK_HOME=`/usr/libexec/java_home -v 12` # v9+ change to the version you installed export JAVA_PATH=$JDK_HOME export JAVA_HOME=$JDK_HOME export PATH="." export PATH="$…

Incredible, thanks for sharing this.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#24

Does the OpenJDK project not offer open source, pre-built binaries already?

There are many OpenJDK(-based) distributions out there, mostly built from the OpenJDK {8, 11} Update Releases sources. AdoptOpenJDK provides one of those distributions.

Most of the actual backport work is done by the OpenJDK participants, notably people from Red Hat (like me), SAP, Amazon, Azul and others. Oracle does not participate in OpenJDK 8u/11u directly, opting to maintain their separate tree, from which they build Oracle JDK 8u/11u available under the commercial license. There is also a security collaboration between many companies (OpenJDK Vulnerability Group), which drops its deliverables in relevant source trees.

At one point, I tried to draw this map to show the bird's eye view on the landscape: https://shipilev.net/jdk-updates/map/ -- you can find AdoptOpenJDK there.

What gets people confused is http://openjdk.java.net/ linking to Oracle distribution (either at jdk.java.net, or Oracle site). That might be seen as "OpenJDK providing the binaries", but it is actually not: it links to one of the distribution providers.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#25

Does the OpenJDK project not offer open source, pre-built binaries already?

There are many OpenJDK(-based) distributions out there, mostly built from the OpenJDK {8, 11} Update Releases sources. AdoptOpenJDK provides one of those distributions. Most of the actual backport work is done by the OpenJDK participants, notably people from Red Hat (like me), SAP, Amazon, Azul and others. Oracle does not participate in OpenJDK 8u/11u directly, opting to maintain their separate tree, from which they…

Well, maybe not directly, but the code you diligently backport does come mostly from Oracle. ;)

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#26
post #17

Oracle's OpenJDK binaries are here: http://jdk.java.net/

At least the MacOS binaries from Oracle are not packaged in a user-friendly manner. You just get a zip file containing JAVA_HOME, and it's up to the user to know what to do with this.

Apple requires you to copy this to a very specific, deeply nested, hidden system directory.

That's definitely not something I could ask an end user to deal with.

After the bait and switch with the licensing for the original Java distribution, I'm not comfortable downloading anything from Oracle anyway. It's just too risky.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#28

You don't need extra projects to manage this stuff anymore. There is a great answer here... https://stackoverflow.com/questions/52524112/how-do-i-instal... brew install java (12) brew install java11 And you can simplify things... In your .bashrc: export JDK_HOME=`/usr/libexec/java_home -v 12` # v9+ change to the version you installed export JAVA_PATH=$JDK_HOME export JAVA_HOME=$JDK_HOME export PATH="." export PATH="$…

Homebrew is only useful for macOS users though sadly.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#29
post #25

Earlier quoted context omitted.

There are many OpenJDK(-based) distributions out there, mostly built from the OpenJDK {8, 11} Update Releases sources. AdoptOpenJDK provides one of those distributions. Most of the actual backport work is done by the OpenJDK participants, notably people from Red Hat (like me), SAP, Amazon, Azul and others. Oracle does not participate in OpenJDK 8u/11u directly, opting to maintain their separate tree, from which they…

Well, maybe not directly, but the code you diligently backport does come mostly from Oracle. ;)

Granted, Oracle does contribute lots of code. As the result, lots of Oracle-created code gets backported too. That said, I see people backport a lot of code/tests that they wrote themselves, and/or with the help of non-Oracle contributors. For example, Red Hat, SAP, Huawei backport a lot of code to maintain the target platforms they own (e.g. AArch64 and PPC), or their components (e.g. diagnostics support, Shenandoah), or their build environments. While I understand the desire to pitch Oracle here, it would be awkward to do so by undervaluing the contributions of others at the same time.

Re: AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries

#30

You don't need extra projects to manage this stuff anymore. There is a great answer here... https://stackoverflow.com/questions/52524112/how-do-i-instal... brew install java (12) brew install java11 And you can simplify things... In your .bashrc: export JDK_HOME=`/usr/libexec/java_home -v 12` # v9+ change to the version you installed export JAVA_PATH=$JDK_HOME export JAVA_HOME=$JDK_HOME export PATH="." export PATH="$…

I'm a big fan of SDKMan for handling my Java/Kotlin/Gradle releases. It works across all the major platforms. Homebrew is great on macOS, but kinda non-existent on other platforms.
Post reply on HN