为什么我不能在Mac OSX 10.8.5上的Coldfusion 9.0.2上将Java从1.6更新到1.7 [英] Why can't I update Java from 1.6 to 1.7 on Coldfusion 9.0.2 on Mac OSX 10.8.5

查看:106
本文介绍了为什么我不能在Mac OSX 10.8.5上的Coldfusion 9.0.2上将Java从1.6更新到1.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 OSX 10.8.5 ,并且最近安装了 Coldfusion 9.0.2 并应用了此修补程序,所以我正在运行 CF版本9,0, 2,282541 (应与Java 1.7兼容).我的产品环境正在运行Java 1.7,因此我试图在开发机器上复制它. CF当前使用的Java版本为 1.6.0_65 .

I'm running OSX 10.8.5 and recently installed Coldfusion 9.0.2 and applied the hotfix so I'm running CF Version 9,0,2,282541 (which should be compatible with Java 1.7). My prod environment is running Java 1.7 so I'm trying to replicate that on a dev machine. The Java Version currently being used by CF is 1.6.0_65.

我的开发箱中的Java在多个位置运行,如下所示:

My dev box has Java running in multiple locations as follows:

System/Library/Java/JavaVirtualMachines/1.6.0.jdk
Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk

当我在Terminal中运行java-version时,我得到以下信息:

When I run java-version from within Terminal, I get the following:

java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

但是,当我启动CF时,它恢复为1.6.0_65:

However, when I start CF, it reverts to 1.6.0_65:

Java Version: 1.6.0_65
Java Vendor:  Apple Inc.
Java Home:    /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

现在我知道CF不使用系统环境变量JAVA_HOME.它使用jvm.config参数"java.home"

Now I know that CF doesn't use the system environment variable JAVA_HOME. It uses the jvm.config argument "java.home"

当我在终端中运行'java -version'时,即使用它在系统路径中找到的Java版本,这与CF可以使用的版本不同.

When I run 'java -version' within terminal, that is using the java version that it finds in the system path, which is different from what CF can use.

基于此,我尝试更新jvm.config文件,以使java.home变量现在为/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/jre ,但即使重新启动CF后,它也会恢复为默认值 1.6.0_65 ,如下所示.

Based on this, I've attempted to update my jvm.config file so that the java.home variable is now /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/jre but even after restarting CF, it reverts to the default of 1.6.0_65 as shown below.

一件有趣的事情是,如果查看 Adob​​e_Coldfusion9_Install_Log.log ,我会看到在安装过程中设置的以下变量(除其他外).

One interesting thing is that if I look at the Adobe_Coldfusion9_Install_Log.log, I do see the following variables (among other things) set during the installation.

java.ext.dirs: 1.)/库/Java/扩展 2.)/System/Library/Java/Extensions 3.)/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext

java.ext.dirs: 1.) /Library/Java/Extensions 2.) /System/Library/Java/Extensions 3.) /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext

java.version: 1.6.0_65(Java 1)

java.version: 1.6.0_65 (Java 1)

java.home:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

这与下面发布的crazy4mustang问题非常相似,但未得到解答.唯一真正的区别是他在经营小牛,而我在Mountain Lion.

This is very similar to the crazy4mustang's question posted below but it is unanswered. The only real differences is that he is running Mavericks and I'm on Mountain Lion.

无法将Coldfusion更新为Java OSX 10.9上为1.7

推荐答案

免责声明:我未在运行OSX

我发现有几篇文章涉及三个文件,这些文件需要更新才能更改OSX上运行的ColdFusion的Java路径.有

I found a couple of articles referring to three files that need to be updated in order to change the Java path for ColdFusion running on OSX. There is this reference which is regarding ColdFusion 10 but I would assume similar locations for ColdFusion 9.

  • /Applications/ColdFusion10/cfusion/bin/jvm.config
  • /应用程序/ColdFusion10/cfusion/bin/coldfusion
  • /Applications/ColdFusion10/cfusion/runtime/bin/wsconfig_jvm.config
  • /Applications/ColdFusion10/cfusion/bin/jvm.config
  • /Applications/ColdFusion10/cfusion/bin/coldfusion
  • /Applications/ColdFusion10/cfusion/runtime/bin/wsconfig_jvm.config

在每个选项中,都有一个用于设置Java主目录路径的设置.它被设置为Java 6的旧位置.我将其更新为指向Java 7.

In each of these, there was a setting to set the Java home path. It was set to the old location for Java 6. I updated these to point to Java 7.

阅读来自Adobe的此注释关于ColdFusion 9.0.2,Java 1.7和OSX

Read this note from Adobe regarding ColdFusion 9.0.2, Java 1.7 and OSX

JDK 1.7仅在Mac OS X 10.7及更高版本上受支持.有关更多详细信息,请参见此文章.由于ColdFusion 9.0.2不支持Mac OS X 10.7,因此累积修补程序1不能在Mac OS X上通过JDK 1.7认证ColdFusion 9.0.2.

JDK 1.7 is only supported on Mac OS X 10.7 and above. See this article for more details. As ColdFusion 9.0.2 does not support Mac OS X 10.7, Cumulative Hot fix 1 does not certify ColdFusion 9.0.2 with JDK 1.7 on Mac OS X.

这篇关于为什么我不能在Mac OSX 10.8.5上的Coldfusion 9.0.2上将Java从1.6更新到1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆