Easiest way to upgrade your ColdFusion JDK

by 12:33 PM 5 comments
I just got a new laptop and have been setting up my local dev environment. After installing IIS and ColdFusion ( 8 and 9 ) I wanted to bump the JDK past the class loader issues with pre 1.6.0_10. I figured I'd go with the most recent ( 1.6.0_18 )

This is a simple process and I'll outline it here. This is the same on Win XP, 2003, Vista, Windows 2008 and Windows 7.

Download the JDK: http://java.sun.com/javase/downloads/index.jsp

Choose the appropriate edition ( I'm running 64bit Windows and CF8 ) so 64 bit edition for me. Make sure you get the JDK not the JRE.

Install the JDK and take note of the install directory. I left it all as default and the install folder is: C:\Program Files\Java\jdk1.6.0_18

Browse to you CFADMIN and select Java and Java Settings:

Replace the Java Virtual Machine path with C:\Program Files\Java\jdk1.6.0_18\jre

Save this and restart your CouldFusion services.

Log back into the CFADMIN click Settings and Summary and confirm the java version is now 1.6.0_18.

And that's it.


  1. Have you run into any issues in your code after upgrading to version 1.6.0_18? Just curious if there is any potential for broken apps due to the upgrade. Thanks!

  2. SO far no issues but the project I am working on currently is ColdFusion back end Flex front end so I can't comment of weather any of the PDF stuff breaks. I'll update when I get our big app running locally.

  3. Is there anyway you can do this without access to the cold fusion aministrator? I can't get to it and am hoping an upgrade would fix it. Thanks!

  4. Yes there is. On windows standard install navigate to:
    C:\ColdFusion9\runtime\bin (or { installdir\runtime\bin } ) and edit jvm.config

    on Linux: /opt/coldfusion9/runtime/bin/jvm.config

    and you can set java.home without the need to access via the CF Admin

  5. Very useful post. Note that the installation is different on JRun4 installations. On these installation you have to edit the appropriate jvm.config file, there is no option to do this via the CF Admin.