hychen39@gmail.com
7/21/2015
1. 安裝 Oracle Form Developer 10g (10.1.2)。一定要安裝 form developer,因為 frmjdapi.jar 在執行時會去 [ORACLE _HOME]\bin 下的目錄去呼叫 .dll 程式。ORACLE_HOME 為一環境變數,指向form developer 安裝的目錄。
2. 安裝 Netbeans。 WinXP + Form 10gR2 的環境下,安裝 Netbeans 7.2 + JDK 7u79 比較穩。
3. 在 Netbean 中新增一 Java Application 專案 。
4. 將 frmjdapi.jar 加入專案中。 frmjdapi.jar 的位置在 [ORACLE_HOME]\forms\java。
若沒安裝 form developer,只有將 frmjdapi.jar 加入到專案中,則執行 jar 檔時會出現錯誤:
JDAPI java doc 載 (10gR2)
Oracle Forms 10g R2 Technical Information
有關 JDAPI 的說明:
Use Java to Access your Forms Files (by JDAPI)
The Oracle Forms Java Design-Time Application Programming Interface
(JDAPI) lets Java programmers
create, load, edit, save, and compile
Forms module files (.fmb, .mmb, .olb, and .pll files) from self-written
Java programs. Forms module files are normally created and edited using
Forms Developer. JDAPI gives you access to almost all of the Forms
Developer functionality. Because it is a programmatic interface and not
an interactive development environment,
JDAPI is an ideal tool for
writing scripts that perform repetitive tasks on large numbers of Forms
module files.
For
example, using JDAPI, you can make global changes to many Forms modules
-- build utilities such as batch compilers or difference analyzers,
create custom documentation, or perform impact analysis.