With the recent ColdFusion releases, we have come across many queries regarding Java updates. The table below shows the default Java shipped with the supported versions.
ColdFusion Version | Base Installer | Refreshed Installer |
ColdFusion 2016 | 1.8.0_72 | NA |
ColdFusion 11 | 1.7.0_55 | 1.8 _25 |
ColdFusion 10 | 1.6.0_29 | 1.7.0_15 |
Now, let us look at the supported Java versions for ColdFusion 2016,11 & 10.
Java Version | ColdFusion 2016 | ColdFusion 11 | ColdFusion 10 |
---|---|---|---|
Java 1.8 | All the updates | Update 3 and above | Update 14 and Above |
Java 1.7 | Not Supported | Update 2 and earlier | Update 8 and Above |
Java 1.6 | Not Supported | Not Supported | Update 7 and earlier |
Once the support for a major version of Java is added, it also covers all the minor/sub versions.
Upgrading to Java 1.8:
- Download the latest version of Java from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Please make sure that you download 64-bit Java for 64-bit ColdFusion and 32-bit Java for 32 bit ColdFusion.
- Run the installer to install Java.
- Take a backup of jvm.config(located at <cf_install_root>cfusionbin)
- To change from ColdFusion’s default Java, modify the Java home url in either jvm.config or in ColdFusion administrator (Settings ->Java and JVM -> Java virtual machine path).
- Restart ColdFusion after making the changes.
- To verify the update, log in to ColdFusion Administrator and see verify the newer Java version .
If you are using Web Services, please do the following:
- Take a backup of tools.jar from {cf_install_home}/cfusion/lib/
- Copy tools.jar from {JDK8_Home}/lib to {cf_install_home}/cfusion/lib/
- Clear the stubs from {cf_install_home}/cfusion/stubs/ to get the newly compiled classes.
Note: Any SSL certificates added to the previous JDK will also need to be re-added to the new JDK (cacerts) file.
You can use Java keytool tool located in Javajre1.8.0_XXbin to import the certificate. You can use the below command:
keytool -import -alias name -keystore Javajre1.8.0_XXlibsecuritycacerts -file mycert.cer
Java upgrade issues and troubleshooting
- If you are unable to start ColdFusion after the Java update:
- Check the location of Java home in jvm.config.
- The Java auto-update modifies the Java install directory location, which causes failure to ColdFusion start. Disable the java auto upgrade.
- Try starting ColdFusion from command line to see specific errors. If the error is "Error loading: C:Program FilesJavajdk1.X.Xjrebinserverjvm.dll", then copy the msvcr100.dll file to <cf_install_root>/cfusion/bin from {JDK8_Home}/bin (for Windows OS).
- After importing certificates, if you have issues related to SSL, then you need to enable debugging for SSL. Take a backup of jvm.config at ColdFusioncfusionbin and add -Djavax.net.debug=all under the “Arguments to VM” in jvm.config. This would require a CF service restart. The argument would append the debugging info to the coldfusion-out.log at ColdFusioncfusionlogs.
Lawrence, since cf10 is no longer updated (since 2017), the latest Java it supports is Java 8.
I have a table listing all the cf and Java versions, within a post on updating Java in cf:
https://coldfusion.adobe.com/2019/04/updates-available-java-8-11-apr-16-2019/
Hope all that may help with the common confusion you’re lamenting.
Java 1.8 is supported by CF11.
For CF2018 future java update policy, please see below blog:
https://coldfusion.adobe.com/2018/10/oracles-java-policy-change/
Paolo, as Charlie mentioned that we refreshed the installer after we released update 3 for ColdFusion 11 and the new installer had update 3 built-in with JDK 1.8.0_25. The installer which you are using is the first installer that we released. On that installer, the JDK version that we shipped was 1.7.0_51.
Please let us know in case you have any issue upgrading JDK on your server.
You must be logged in to post a comment.