Core Java

A Tale of Two Oracle JDKs

There has been concern recently that Java developers will inadvertently use the wrong Oracle-provided JDK implementation now (as of JDK 11) that Oracle provides builds of the open source OpenJDK and also provides commercial JDK builds based largely on the OpenJDK source.

The table below compares and contrasts the two versions of JDK that Oracle provides (but Oracle won’t be the only supplier of JDK builds available for free and/or for support charge). Please keep in mind this represents my best personal understanding of the differences and similarities of Oracle’s two offerings; please check with an authoritative source before making decisions regarding which Oracle JDK implementation to use (or even whether to use an Oracle implementation).

JDK Builds from Oracle (https://jdk.java.net/)
CharacteristicOracle OpenJDK BuildsOracle JDK (Java SE Downloads)
Oracle’s DescriptionsEnd users and developers looking for free JDK versions: Oracle OpenJDK offers the same features and performance as Oracle JDK under the GPL license.”Oracle Customers and ISVs targeting Oracle LTS releases: Oracle JDK is Oracle’s supported Java SE version for customers and for developing, testing, prototyping or demonstrating your Java applications.”
Web Addresshttps://jdk.java.net/11/https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
LicenseGNU General Public License, version 2, with the Classpath ExceptionOracle Technology Network License Agreement for Oracle Java SE
Build Platforms (Binaries)Linux / x64 (tar.gz)
macOS / x64 (tar.gz)
Windows / x64 (zip)
Linux / x64 (tar.gz, deb, rpm)
macOS / x64 (tar.gz, dmg)
Windows / x64 (zip, exe)
Solaris SPARC (tar.gz)
Pay for Production UseNoYes
Oracle SupportSelect bug fixes and security patches until next JDK version’s General Availability releaseJava SE Subscription
(Support for LTS versions for up to 8 years)
Several Other Paid Support Offerings under “Oracle Customers
java -version Exampleopenjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Required to Accept License AgreementNoYes
Java Flight RecorderYesYes
Java Mission ControlYesYes
Advanced Management ConsoleNoYes
This table represents my personal understanding only; refer to Oracle documentation and OpenJDK documentation for more authoritative information (see “References” below).

There are other implementations of the JDK that will be available as well, with some being free and some requiring payment. I did not discuss those alternatively provided JDKs in this post in order to keep the comparison cleaner and simpler between the “Oracle OpenJDK builds” and the “Oracle JDK builds”.

References

Published on Java Code Geeks with permission by Dustin Marx, partner at our JCG program. See the original article here: A Tale of Two Oracle JDKs

Opinions expressed by Java Code Geeks contributors are their own.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button