Java 17 support status update

One of the blockers on the long road to getting java 17 fully supported was the removal of the nashorn javascript engine in java 15, as the build uses some javascript for various steps. We do dogfood Lucee for some major steps, but the javascript scriptx engine is much faster for little things

LDEV-3807 - Java 17 support
LDEV-3526 - Update Felix to 6.0.5 to support Java >= 16

I have had a few stabs at getting Nashorn working, and I can finally say we can now build Lucee 6 using java 17

LDEV-3820 - update ant build scripts to support java 15 which doesnā€™t bundle a javascript scriptx engine

There are still a number of things which donā€™t work with Java 17 yet, a number of test cases are failing, but we are making progress!

Base line for Lucee 6 is Java 11, Java 8 is supported as long as we can

PS: Please support Lucee project with donations Lucee - Open Collective

5 Likes

Fantastic news, nice work Zac!

  1. Can we get an update to what versions of lucee currently/will have support Java 17 (and also Tomcat10).
  2. What is the main bottleneck here (what combo of time/money/resources?)

Cheers,
Chris Dawes

Full Java 17 support is slated for a 6.x release and yes like everything else itā€™s a question of resources, if people want to dive in and work on the known issues, that would be welcome.

Tomcat 10 and the javax / servlet namespace changes are really problematic and these issues cascade thru all the extensions and downstream libraries we use, as such thatā€™s probably going to require a major release.

Our current focus is supporting 5.4 and getting the first 6.0 release finalised

3 Likes

Now that Lucee 6 is out what is the status of Java 17 support?

Itā€™s May. My companies security guys are being increasingly vocal about the Java 11 EoL.

Is there any ETA for having Lucee 6 work with Java 17?

3 Likes

Are you guys working to have Java 17 support in version 5.x as well?

Our security folks pinged us on this as well, two things that might help you:

  1. Oracle Java 8 extended support goes on past 2030 (thirty!) with the uplift fee waived
  2. We run on Amazon Corretto 11 for our JDK, and itā€™s supported until 2027
1 Like

Thanks for the suggestions. But our guys wouldnā€™t allow us to downgrade, and weā€™re not on AWS.

You donā€™t need to be using AWS to use Amazon Corretto - it is just a flavour of a JDK:

We should also note that Lucee comes with Java from the Eclipse Adoptium working group.
Their Java 11 version is also supported longer than the Oracle version which is EOL later this year.

From what I can see on their website this Java 11 version is supported until at least 2027. Their versions and supported dates are listed on this page:

Hope that helps.

1 Like

Technically Java 11 was eol last year (Sept), but oracle still provides updates (one just last month), for:

  • those using it with licensed oracle products,
  • or who have obtained a license for its use (as is the case for acf users, for whom adobe has licensed it),
  • or for development or personal use

Still, yes, for lucee users, youā€™d want to use an openjdk to get updates.

Fwiw, formally adobe does not support use of openjdk with acf, but as some may already know they offer updates to jdk 11 and 17 (and even 8, as the api manager still runs on it) at Download ColdFusion updates, add-ons, and developer tools, and oracle also offers updates for 11 and 8 at the bottom of Java Downloads | Oracle, though thatā€™s easily missed.

3 Likes

Installed Lucee 6.2.0.7 (snapshot), noticed it still runs on Java 11 as well as Tomcat 9?

As far as Iā€™ve read and heard at cfcamp, Lucee 6 is already supporting Java 21, but Iā€™m not an official speaker for the Lucee Team. See Michas latest comment at:
https://luceeserver.atlassian.net/browse/LDEV-3807

Iā€™m pretty sure the downloads for those version need to get updated. Would be nice, if someone could officially post a note about it.

please see the following Epic [LDEV-4660] - Lucee

That is exactly what I am asking: compiled with JDK 21 but still runs on Java 11 ?
(Upgraded from within the Lucee admin)

As you can see, the Java 21 support ist pretty recent as of Lucee 6.2. The Lucee Team still needs to create all the builds, get a fresh Tomcat, etc to make them available all together as download. Iā€™m sure they have it planned pretty soon, or maybe someone else with Tomcat experience may be able to help them to do the switch as an open source contribution.

Update: managed to make Lucee (6.2.0.10) run on Java 21 (OpenJDK/Eclipse Adoptium), and it runs stable for now.
Couldnā€™t upgrade Tomcat however, not even to version 9.0.90.
Still, itā€™s great progress! Hopefully J21 will be included in the next stable release.

2 Likes