Javarevisited
Published in

Javarevisited

Details on OpenJDK vs. OpenJFX Release Cycles | foojay

Confused about the release cycles of OpenJDK and OpenJFX and the relationship between them? Read on!

This post was originally shared on foojay.io, “a place for friends of OpenJDK”. Please follow @foojay2020 on Twitter for more Java-related news.

OpenJDK

Since 2018, Java switched to a 6-months release cycle. Every new release brings new finished features, but also “preview” ones which are not finished yet. These can be enabled with a flag (` java --enable-preview`) to allow developers to start experimenting with them and provide feedback to the developers to further improve these so they can become available in one of the next releases.

Thanks to this fixed schedule, new versions are no longer causing major changes, but provide a steady, predictable, and stable flow of new features.

If you’re in doubt if you should move to a newer JDK version, make sure to read “ Modern Java toys that boost productivity, from type inference to text blocks. Developers using older versions of the Java platform are missing out.” by Angie Jones on the Oracle Java Magazine.

OpenJFX

In the past, JavaFX has been bundled with the Oracle JDK (until JDK 11), but it was always a project on its own as openjfx.io, with its sources on GitHub. Gluon builds and distributes the OpenJFX releases, following the same 6-month release cycle.

You can find them in the Maven Central Repository or on the Gluon website.

An overview of all the changes in OpenJFX since version 11 are available here.

Relationship Between OpenJDK and OpenJFX Releases

Until now, the OpenJFX releases did not require a specific OpenJDK version. This means you can use OpenJDK 11 combined with OpenJFX 15.

At this moment, there are no planned features or changes in OpenJFX which require new JDK features (text blocks, records, etc), so the next releases of OpenJFX will most probably still be compatible with JDK 11.

Conclusions

Yes, OpenJDK and OpenJFX are aligned in the number of releases per year (2x) and follow the same major version numbering (current is 15, next one will be 16).

No, they are not “bound together” and follow their own path.

The above timelines are screenshots of a small JavaFX application which is part of my book “Getting Started with Java on the Raspberry Pi”. The sources are available on GitHub.

Originally published at https://foojay.io on October 29, 2020.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store