DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • A Maven Story
  • Binary Code Verification in Open Source World
  • Build a Java Backend That Connects With Salesforce
  • How to Use Java to Build Single Sign-on

Trending

  • When Airflow Tasks Get Stuck in Queued: A Real-World Debugging Story
  • The Future of Java and AI: Coding in 2025
  • Implementing Explainable AI in CRM Using Stream Processing
  • Distributed Consensus: Paxos vs. Raft and Modern Implementations
  1. DZone
  2. Coding
  3. Java
  4. The JDKs: Which One to Use?

The JDKs: Which One to Use?

Need help deciding which JDK is right for you? Look no further.

By 
Fernando Almeida user avatar
Fernando Almeida
·
Dec. 10, 18 · Presentation
Likes (46)
Comment
Save
Tweet
Share
114.0K Views

Join the DZone community and get the full member experience.

Join For Free

Recently (or not so much), Oracle announced that it will change the way Java evolves, adopting the "Release Train" to launch new versions. In addition, it has changed the way support for the versions will be offered, providing only support for LTS versions. The community made up of the Java Champions also spoke about it, explaining the changes in detail here.

However, along with this news, how are JDK builds available? Will they be free or paid? Before answering this, it's important to understand what a "valid" JDK for distribution actually means. In practical terms, there is only one set of source code for the JDK. The source code is hosted here. Anyone can pick up this source code, produce a build, and post it to a URL. However, there is a separate certification process that must be used to ensure that construction is valid. Certification is performed by the Java Community Process (JCP), which provides a Technology Compatibility Kit (TCK). If an organization produces an OpenJDK build that complies with the entirely TCK, this build may be described as "compatible with Java SE".

Note that the build cannot be called "Java SE" without the vendor obtaining a commercial license from Oracle. For example, AdoptOpenJDK builds that pass the TCK are not "Java SE," but "Java SE compatible" Also, note that certification is currently on a trust basis — results are not sent to JCP/Oracle for verification and cannot be made public. In short, the OpenJDK + Vendor process transforms a source base into several different builds.

Figure 1: OpenJDK source code transformed into builds (per Vendor)
Without further ado, check out the following JDKs that are ready to download:

Oracle JDK

This is the main distributor of Java 11 (already released). This is a commercial version of the brand with paid support. It can be downloaded and used free of charge for development use only. It cannot be used in production without paying Oracle (so it's a trap for the unsuspecting). Oracle intends to provide full, paid support until 2026 or later. Note that, unlike the past, Oracle JDK is not "better" than the OpenJDK build (as long as both are at the same level as the security patch).

OpenJDK Build by Oracle

These are free and unbranded versions of the OpenJDK under the GPL license with Classpath Exception (secure for business use). These builds are only available in the first six months of a release. For Java 11, the expectation is that there will be Java 11.0.0 and then two security patches, 11.0.1 and 11.0.2. To continue using the OpenJDK build by Oracle with security patches, you would have to switch to Java 12 within a month after the launch. Note that the provision of security patches is not the same as support. Support involves paying someone to do the sorting and acting on the error reports.

AdoptOpenJDK Build

These are free and unbranded OpenJDK builds under the GPL license with the Classpath Exception. Unlike Oracle's OpenJDK builds, these builds will continue for a much longer period for major versions such as Java 11. The versions of Java 11 will continue for four years, one year after the next major release. AdoptOpenJDK is a community group. They will provide builds as long as other groups create and publish security fixes to a source repository in OpenJDK. Both IBM and Red Hat have indicated that they intend to provide these security patches.

AdoptOpenJDK OpenJ9 Build

In addition to standard OpenJDK builds, AdoptOpenJDK will also provide builds with OpenJ9 instead of HotSpot. OpenJ9 was originally the IBM JVM, but OpenJ9 is now open source in Eclipse. This one, in fact, is something to be studied.

Red Hat OpenJDK Build

Red Hat provides OpenJDK builds through Red Hat Enterprise Linux (RHEL), which is a commercial product with paid support. They are very good at providing security fixes back to OpenJDK. In the past, Red Hat has run the Java 6 and 7 security update project. The Red Hat build is better integrated with the operating system, so it is not a pure OpenJDK build (no end-user JDK)

Azul Zulu

Zulu is a branded version of OpenJDK with paid commercial support. In addition, Azul provides some Zulu constructions for free as part of the "Zulu Community;" however, there are no specific commitments regarding the availability of these free constructions. Azul has an extensive plan to commercially support Zulu, including plans to support Java 9, 13, and 15, unlike any other vendor.

Amazon Corretto

Among all, it is the newest option. Corretto is a no-cost build of OpenJDK with long-term support passing through the TCK. It is under the standard GPL + CE license of all versions of OpenJDK. Amazon will add its own patches and run Corretto on AWS, so it will be heavily used (it has already been placed on some products). Support for Java 8 will be at least until June 2023.

In the process of transforming OpenJDK's source database into a building, the vendor may or may not add some branding or additional utilities as long as this does not prevent certification (TCK). For example, a provider can not add a new public method to an API or a new language resource.

Additionally, there are still other implementations of JDK, such as IBM and SAPMachine. However, these builds are not yet as used as the others, so I decided to leave their out of this short article. However, more information can be seen here and here.

 Conclusion

Personally, I don't see it as a problem to have several distributions of JDK, since each one must be passed previously in the TCK. The item to be taken care of here is precisely the adoption of a proprietary JDK (Oracle) and a free build, avoiding further headaches in the future. If you only use the default features (for example, it does not depend heavily on security updates for your business), it is good to use OpenJDK Builds by Oracle (NOT OracleJDK), as it will ensure constant updating (within six months of release) and you can use JDK in production without major problems. If your business is cloud-based (with AWS), I think it's a good try on AWS Corretto, which is already production-ready for Amazon Linux and Docker.

Which JDK is right for you? Let us know what you think in the comments below!

Build (game engine) Java (programming language) OpenJDK Technology Compatibility Kit Java Development Kit security

Opinions expressed by DZone contributors are their own.

Related

  • A Maven Story
  • Binary Code Verification in Open Source World
  • Build a Java Backend That Connects With Salesforce
  • How to Use Java to Build Single Sign-on

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!