As daunting as it may seem updating the JVM version or installing a new version of the Java Virtual Machine is a really simple task. To proceed with this I strongly recommend that you view the original JVM.config for the Coldfusion instance and take note of the “java home” that is specified in the file. For example in a default Coldfusion 9 install it will look like this;
“#java.home=/opt/coldfusion9/runtime/jre”
Just to be on the save side I typically copy that file and rename it so in the event that something happens and I didn’t write it down (Of course I’d right it down) that I would be able to roll it back with minimal downtime. Once that is taken care of you can proceed with the actual JVM update or install.
To do this make sure you know what kernel you are running, 32-bit or 64-bit. If you aren’t sure you can always using the “uname” command to figure it out;
“uname -m”
It will return the value that you need. If it returns “i686″ then you are on a 32-bit kernel and if it returns “x86_64″ then you are on a 64-bit kernel.
Now that you know which you have you can proceed to the Java downloads and get the correct version – http://java.com/en/download/manual.jsp#lin. Take note here that you can download either the RPM of the self extracting file, always go with the RPM unless you need to do some manual changes.
Once the file is downloaded you will need to grant permissions to excute it. To do this you will need to run the following;
“chmod a+x file name”
For example; chmod a+x jre-6u29-linux-i586.rpm.bin
Now you can run the file by running;
“./jre-6u29-linux-i586.rpm.bin”
This will install the Java Runtime Engine (JRE) to “/usr/java/JRE version number”
Unpacking…
Checksumming…
Extracting…
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP ([email protected]).
inflating: jre-6u29-linux-i586.rpm
Preparing… ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files…
rt.jar…
jsse.jar…
charsets.jar…
localedata.jar…
plugin.jar…
javaws.jar…
deploy.jar…
Done.
Once this has been completed you can go back to the JVM.config that I mentioned earlier and update the “java.home”.
#java.home=/opt/coldfusion9/runtime/jre
java.home=/usr/java/jre1.6.0_29
As you see I commented out the original JRE and updated the “java.home” with the path to the newly installed JRE. Save the changes and then restart Coldfusion.
You’ll be able to access the Coldfusion admin once it comes online and you will be able to view the system infomration and see that the JRE path has been updated as well;
See that wasn’t so bad was it?

Entries (RSS)