該錯誤有兩個層面︰
執行使用 Derby 資料庫的範例應用程式設定程序檔時,在目前目錄或 <install_root>/bin 下便會建立 Derby 資料庫。
範例 build Ant 程序檔可建立 password.txt 檔案,用於儲存目前目錄下的管理密碼檔案,該檔案無法在非根區域和稀疏區域案例中寫入。
Derby 資料庫位置 – 以 start-database 指令使用 --dbhome 選項,根據 --dbhome 的指定值建立資料庫。例如,以下為用於 start-database 的 asadmin 指令語法。
start-database [--dbhost 0.0.0.0] [--dbport 1527] [--dbhome db_directory] [--echo=false] [--verbose=false] |
password.txt 檔案的位置 – 依設計,應可寫入範例目錄,因為所有建立指令均可在該目錄中建立 password.txt 檔案。請確保在可寫入的位置安裝範例的作業備份。