OpenJDK Version

Hello,

CommandBox install instructions reference openjdk-11-jdk

Is there a particular reason why you suggest that version vs any of the newer versions?

It looks like they are up to v21

https://openjdk.org/projects/jdk/

Thanks,

Randy

Mostly because that was the latest version at the point when that page in the docs was written and it’s still the most widely-supported version as far as CF engines go. The CF engines Adobe and Lucee have just recently added support for Java 17.

Hi Brad,

Good to know.

Thanks,

Randy

Are you sure about Lucee? I too was looking for information on the latest supported java versions.
I only found this ticket and it would seem that support for version 17 will be introduced in Lucee 6.1

@ivan Lucee has “worked” on Java 17 for a few versions now, if you add all the needed opens to the JVM. Lucee doesn’t tend to do a ton of Java testing on their own, depending instead on the community to help report any issues that exist. As such, there isn’t always a well-documented max version that it’s “certified” to run on per se. Usually, if your app runs on it, well then it works. if not, put in a ticket and they’ll look at it.

I’m not entirely sure why that ticket is marked as a Lucee 6.x version-- I’ve been testing Lucee locally on up to Java 20 which good success. I know Zac had put some effort into testing as well.

1 Like

Hi @bdw429s,

I have a follow up question on this. Today I installed the latest Commandbox on Rocky 9 using instructions here.

I noticed that when the install happened it installed `` instead of recognizing that I had a java version already installed.

I did see here that we can easily set which Java we want to use for our sites.

If I go ahead and set the custom java version (Version 21) as reported here can be used with Lucee 6.1 can java-11 be removed or is that needed by CommandBox?

Thank You,

Randy

Our Debian package automatically installs java 8 which I doubt you had installed, so that’s prolly why installed it. That said, you can run the CLI on whatever version you like. It will obey your JAVA_HOME env var. You can also run your servers on whatever versions of Java you see fit to do so. Any versions of Java you don’t want to keep around, feel free to remove.