WebSphere 測試環境的編譯支援

如果您在本端未安裝伺服器,但想要開發伺服器的應用程式,或從遠端連接至伺服器,您可以使用伺服器的 stub。

stub 是一個目錄,包含編譯時期支援的 WebSphere® Application Server JAR 檔、WebSphere Application Server 的遠端部署配置,以及對應的 Java™ 開發者套件 (JDK)。 當本端未安裝對應的執行時期環境或測試環境時,這些 Stub 目錄可讓您建置伺服器的應用程式。

使用 IBM® Installation Manager 安裝產品套件時,您可以選擇性地安裝每個支援的 WebSphere Application Server 版本可用的 stub 目錄(WebSphere Portal Server 也有 stub 目錄可用)。從 Installation Manager 的特性清單中,安裝 Stub 目錄的選項標示為:在沒有本端伺服器安裝的情況下開發應用程式的工具

WebSphere Application Server 的 Stub 目錄預設安裝設定為 x:\runtimes\base_v#_stub,其中 x 是此產品的安裝目錄,# 是伺服器的版本層次。 例如,在 Windows 作業系統上,WebSphere Application Server 8.0 版 stub 目錄的預設安裝設定為:C:\Program Files\IBM\SDP\runtimes\base_v8_stub

註: 當專案以 WebSphere Application Server stub 為目錄(與完整執行時期環境相反),且應用程式使用內部 WebSphere Application Server 類別時,您可能會遇到編譯錯誤,或在 Java 編譯器 stub 產生階段發生錯誤,例如找不到類別的異常狀況。
Icon that indicates the type of topic Reference topic
Timestamp icon Last updated: last_date

File name: rcompile.html