Reputation: 165
Running OSX 10.9.3 with ColdFusion 9.0.1. Was running on Java 1.6 and now trying to update to Java 1.7. I've updated CF with the proper hotfix for 1.7 compatibility. I installed the 64-bit 1.7 JDK as well.
Now I have Java in two places:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk
When I run
java -version
I get java
version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
but when I restart CF it comes up and reports
Java Version 1.6.0_65
Java Vendor Apple Inc.
Java Vendor URL http://www.apple.com/
Java Home /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
I changed the symlink in
/System/Library/Frameworks/JavaVM.framework/Versions
to
CurrentJDK@ -> /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/
but a CF restart still reports Apple's 1.6. I also tried updating the jvm.config and setting java.home (which was previously blank) to
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre
and a restart and still no luck. Where is CF looking for the JVM and how to make CF see 1.7?
Upvotes: 1
Views: 207
Reputation: 256
I posted a similar question Why can't I update Java from 1.6 to 1.7 on Coldfusion 9.0.2 on Mac OSX 10.8.5 but had no luck.
This answer below according to Adobe: (See comments 40-41). It appears that this configuration is not supported by Adobe. Time to upgrade (or move to OBD/PHP).
Upvotes: 2