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.
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!
ReplyDeleteSO 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.
ReplyDeleteIs 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!
ReplyDeleteYes there is. On windows standard install navigate to:
ReplyDeleteC:\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
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.
ReplyDelete