HSQLDB, the famous fast RDBMS written in Java, introduced a new feature which affects code ported over from previous versions. HSQLDB -は、有名な高速R DBMSのより多くのJ avaで書かれた、新しい機能を導入した影響を及ぼす以前のバージョンからコードを移植する。 From version 1.7.2, in-process databases are no longer closed when the last connection to the database is explicitly closed via JDBC.バージョン1.7.2から、データベースはもはやインプロセスの最後の接続を閉じたときには、データベースのJDBC経由では明示的に閉鎖します。 Effectively your data is not written to disk even if you exit the program (say for database opened within application).効果的にお客様のデータをディスクに書き込まれていないため、プログラムを終了する場合(例えば、データベースアプリケーションをオープンに) 。 Also it prevents opening the database next time around as a lock file (.lck) has been created to indicate that the data has not been commited to disk.また、データベースを開くには、次の時間を防止策として、ロックファイル( 。 lck )が作成されてことを示すために、データをディスクにコミットされていない。 There are two solutions to this issue.この問題を解決するには2つのソリューションをします。

You can either issue an explicit SHUTDOWN command through executeQuery.明示的なシャットダウンすることができます。のいずれかのコマンドを発行するのexecuteQueryです。 It will effectively shutdown the database and commit all data to disk.データベースと効果的にシャットダウンすることは、すべてのデータをディスクにコミットします。

A simpler way is to slightly alter your DriverManager.getConnection statement to ensure the database is closed after the last connection has been closed.単純な方法はdrivermanager.getconnectionを若干変更して声明を確保するため、データベースが閉鎖した後の最後の接続が閉じられていた。 This is what I use -これは私が使用する-
DriverManager.getConnection(”jdbc:hsqldb:file:” + database + “ ;shutdown=true “, “sa”, “”); drivermanager.getconnection ( "のJDBC : HSQLDB -:ファイル: " +データベース+ " ;シャットダウン= t rue"を、 "を" 、 " " ) ;