問題描述
我們剛剛在一些新服務器上部署了 CF 10.
We have just deployed CF 10 onto some new servers.
我正在嘗試 遵循這個過程,我們在 CF8 上沒有任何問題.但是我不確定 CF10 的結構如何.
I'm trying to follow this process, which we had working without any issues on CF8. However I'm not sure how things are structured in CF10.
我們在 CF 10 中的目錄路徑顯示為:
Our directory path in CF 10 appears as:
Coldfusion10
cfusion
jre
ininstall
是否所有額外的 Java 類都安裝到 jre
中?
Do all the additional Java classes get installed into jre
?
推薦答案
CF10 的唯一區別是 {install root} 和 {web root} 之間多了一個目錄層.即
The only difference in CF10 is there is an extra directory layer between the {install root} and {web root}. ie
coldfusion8wwwroot
coldfusion10cfusionwwwroot
但是,它不會改變 the關于類加載.jar 可以放在任何地方,只要它們可以被 CF 服務訪問,并且目錄在 CF 類路徑中,或者默認的 jvm 類路徑中.
However, it does not change the rules about class loading. Jars can be placed anywhere, as long as they are accessible to the CF service, and the directory is in CF class path, or the default jvm class path.
CF 自動檢查的默認類路徑中有幾個目錄,例如 {cf_webroot}web-inflib
.最簡單的選擇是將它們放在該目錄中.然后 CF 會自動拾取它們,無需使用類路徑設置.只需將您的 jar 放到該文件夾??中,重新啟動 CF 服務,您就可以開始了.
There are several directories in the default class path that CF checks automatically, such as {cf_webroot}web-inflib
. The simplest option is to place them in that directory. Then CF will pick them up automatically, no need to muck with the class path settings. Just drop your jars in that folder, restart the CF service, and you are good to go.
這篇關于如何為 ColdFusion 10 安裝自定義 Java 類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!