January 4, 2021
A table of what Java versions can be used with what ColdFusion versions
Comments
(8)
January 4, 2021
A table of what Java versions can be used with what ColdFusion versions
ColdFusion troubleshooter
Wizard 146 posts
Followers: 115 people
(8)

[Posted originally in Jan 2021, with the following updates: Sep 2023: added Java 21. Jul 2023: added CF2023 and confirmed state of 2021 and 2018. Aug 2022: minor refinements. Mar 2022: removed references to Java 12/13 and added mention of Java 17.  Mar 2021: added a link to info on what JVM versions are supported, as well as how to find what JVM version you are currently running and where to get Java installers from Adobe.]

You may wonder which version(s) of Java you can use with your current version of ColdFusion, or one you plan to use. It depends on first on what version of CF you are using, and then on what CF update has been applied to that CF version.

In this post, I offer a table that clarifies things, listing the various recent CF versions (even those no longer supported) and what (LTS) Java versions they supported, based perhaps on what CF update had been applied.

The info below is current as of the date of the release update of this post, Jan 2021 Sep 2023. I plan to keep it updated as information changes.

FWIW, I originally offered this information within a longer 2019 post about new Java updates released then (in Apr 2019), but I’ve pulled this table to stand on its own. Find your cf version below, and see what Java version(s) it may support:

Java 21 Java 17 Java 11 Java 8 Java 7 Java 6
CF2023 Not yet Yes NO NO NO NO
CF2021 Not yet Not yet Yes NO NO NO
CF2018 NO NO Yes
(if CF2018 update 2
or later. Supported
Java 10 initially)
NO NO NO
CF2016 NO NO Yes
(if CF2016 update 8
or later)
Yes NO NO
CF11 NO NO NO Yes
(if CF11 update 3
or later)
Yes NO
CF10 NO NO NO Yes
(if CF10 update 14
or later)
Yes
(if CF10 update 8
or later)
Yes
CF9 NO NO NO NO See below Yes

Again, I will update this post as things change over time.

(As for Java 12, which came out in Mar 2019, note that while CF2016 and 2018 came out with an update that year to support it, that version was only updated until Sep 2019, so it would no longer be appropriate to consider running Java 12 with any CF version. The same is true of other Java versions that had short lives, Java 9, 10, 13-16, 18-20. Since the release of Java 8, only the releases above have been considered LTS or “long-term support” releases, and Adobe supports only those–and formally only Oracle Java.)

As for downloading the latest Java installer or archives, see the Adobe CF “downloads” page (which is not for downloading CF, but things related to CF), and specifically the list of Oracle Java installation files that current CF versions support.

How do I know what JVM version I am currently running?

I mentioned already that I have done a past post (and plan future posts) with more details, but this topic is worth pulling out here: naturally you may wonder, “well, what JVM version am I running now?” There are at least two ways.

The easiest may be to go into your CF Admin, and view either the Settings>Settings Summary page or the “System Information” page (the “i” icon in the top right of the admin). On those pages, about 10-20 lines from the top is a section on JVM details, and it will report what JVM version you are currently using.

If you don’t have access to the CF Admin, I have a post on how you can also determine CF’s Java version from within CFML code.

Finally, if you’re still running CF9…

Actually, if you are running anything less than CF2021 in 2023, you should know that you are running on a CF version that is no longer updated by Adobe (Cf2018 updates ended in Jul 2023).

But as I noted in the table above, as for CF9 and when Java 7 support was added, again see the original post I link to above and below.

Conclusion

Finally, if you may have still other questions related to CF and Java versions (such as about Adobe’s licensing of Oracle Java for us, or how Adobe does NOT support JVMs other than those from Oracle,  and more), see the previous post where I first shared that info, and the table, and more. While it was about the specific Java update in 2019, what I shared applies generally to all Java versions.

I welcome comments and feedback.


For more blog posts from Charlie Arehart, see his posts here as well as his posts at carehart.org. And follow him on Twitter and other social media as carehart.

8 Comments
2023-09-28 23:21:06
2023-09-28 23:21:06

Hi Charlie,

Now Java 21 is LTS release perhaps you could add a column for that and for now NO entry for CF support.

 

Like
(1)
>
carl type3
's comment
2023-09-28 23:52:17
2023-09-28 23:52:17
>
carl type3
's comment

Yep, will do. Thx.

Like
2023-07-26 15:39:25
2023-07-26 15:39:25

Has anyone had any luck running Java Version 11.0.20 with CF2018 or CF2021?

Like
(1)
>
KennethMHutch
's comment
2023-07-27 03:49:23
2023-07-27 03:49:23
>
KennethMHutch
's comment

Yes, but with caveats and needed workarounds for two known issues, and fear of possible others. See my post from last Friday (and its link to a tracker ticket) for more:

https://www.carehart.org/blog/2023/7/21/problem_downloading_cf_updates_after_jul2023_jvm_update

Like
2023-07-14 14:23:43
2023-07-14 14:23:43

Thanks Charlie for this article. My question is related to CF2018 & java version update.

what version of Java do you recommend for CF 2018 from the below list that is available for download here https://helpx.adobe.com/coldfusion/kb/coldfusion-downloads.html#downloads3?

I am assuming JAVA SE 11.0.19 (LTS)  with the manual install option and then making jvm.config update or CF admin page to point to this new java location right?

JAVA SE 11.0.19 (LTS)
JAVA SE 11.0.18 (LTS)
JAVA SE 11.0.17 (LTS)
JAVA SE 11.0.16.1 (LTS)
JAVA SE 11.0.16 (LTS)

I had asked this question to Adobe but so far as of July 14 10:20 am ET, no one has responded here https://community.adobe.com/t5/coldfusion-discussions/live-coldfusion-2023-2021-and-2018-july-2023-security-updates/m-p/13931916#M195317

Thanks,

Like
(1)
>
AjasHadi
's comment
2023-07-15 05:11:22
2023-07-15 05:11:22
>
AjasHadi
's comment

The answer is “yes”. And it’s communicated more clearly in the other post I pointed to here, where I said more specifically, “In brief, Adobe has always supported using the latest Java update (point release) of a major Java version which is supported by that version of CF.  That phrase can easily confuse folks, so read on for how that works out practically for you.”

Like
2021-11-19 15:06:34
2021-11-19 15:06:34

This is very helpful.  Updating my JRE fixed my “I/O Exception: peer not authenticated” error I was getting in ColdFusion.  Thanks!

Like
(1)
>
Chad Armond_872
's comment
2021-11-19 18:11:39
2021-11-19 18:11:39
>
Chad Armond_872
's comment

Thanks for the kind regards, Chad. Glad to have helped.

Like
Add Comment