Skip to main content
Known Participant
February 24, 2011
Question

Updating the JRE for CF9

  • February 24, 2011
  • 2 replies
  • 1102 views

I tried this on a test system, and seemed to work fine.  Just want to verify that I'm doing this correctly, and not missing anything.  I've got a CF9.01 Enterprise system running on Windows 2003 32-bit.

- Downloaded jdk-6u24-Windows-i586.exe from Oracle and installed it to the c:\Program Files\Java\jdk1.6.0_24 folder

- Stopped all CF services

- Copied the entire contents of the c:\Program Files\Java\jdk1.6.0_24\jre folder on top of the c:\Jrun4\jre folder

- Restarted CF services

- Checked the Java version number in the CF admin and it is updated to 1.6.0_24

    This topic has been closed for replies.

    2 replies

    Charlie Arehart
    Community Expert
    Community Expert
    February 25, 2011

    Wow, Paul, I'm curious where you got the idea to do the step:

    - Copied the entire contents of the c:\Program Files\Java\jdk1.6.0_24\jre folder on top of the c:\Jrun4\jre folder

    As Carl clarified in his subsequent note, all you need to do is change the java.home in the jvm.config (or CF Admin) to point to the newly installed jdk.

    But I'm asking because I really am curious if you found someplace (perhaps on the web) that suggested doing the copy. I'd think we'd want to go comment there to suggest against it. Just trying to help.

    /charlie

    /Charlie (troubleshooter, carehart. org)
    paule1234Author
    Known Participant
    February 25, 2011

    Charlie, that was purely my idea after examining the contents of the package

    I must have been googling the wrong things because I was having a hard time finding solid step by step info on how to do this.

    Legend
    February 24, 2011

    Hi Paule,

    This is how I normally do it.

    Download from Oracle Java developer kit (not runtime):

    http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Install that via running EXE you downloaded - default install will be fine.

    Stop CF - SERVICES.msc stop "ColdFusion 9 Application Server".

    Take a copy of CF\runtime\bin\jvm.config - so you got a backup.

    Edit CF\runtime\bin\jvm.config find line "java.home=" and comment it out eg:

    #java.home=C:/ColdFusion9/runtime/jre

    Add new line like so and save jvm.config:

    java.home=C:/Program Files/Java/jdk1.6.0_24/jre

    Note there the slashes and the location of the JRE (runtime) - you need to point to the one in JDK because the other JRE in C:\Program Files\Java\jre6 will be missing a DLL.

    Start CF via SERVICES.msc.

    HTH, Carl.

    paule1234Author
    Known Participant
    February 24, 2011

    Thanks Carl.  Your solution is definitely the safer way to go.  Easier to revert back to the old version if necessary.