}
WorkingDialog workDialog = new WorkingDialog(null);
workDialog.setVisible(true);
workDialog.SetProgress(0);
DatabaseSystem system = new DatabaseSystem();
// Create a default configuration
DefaultDBConfig config = new DefaultDBConfig();
File ff;
try {
ff = Fileio.getFile("data", "data", false, false);
} catch (Exception ee) {
SystemLog.ErrorPrint("Cant find db.conf : " + ee.getMessage());
workDialog.dispose();
return;
}
config.setDatabasePath(ff.getAbsolutePath());
config.setMinimumDebugLevel(Integer.MAX_VALUE);
// Set up the log file
system.setDebugLevel(Integer.MAX_VALUE);
// Initialize the DatabaseSystem,
// -----------------------------
// This will throw an Error exception if the database system has already
// been initialized.
system.init(config);
// Note, currently we only register one database, and it is named
// 'DefaultDatabase'.
Database database = new Database(system, "DefaultDatabase");
boolean success = false;
try {