*/
private void checkDBException() {
// Create an AssetDB object, which will attempt to open the DB. Upon
// exception, launch a message dialog. Upon success, just close the
// DB
AssetDB assetDB = null;
try {
assetDB = new AssetDB();
} catch (AssetDBException excp) {
LOGGER.log(Level.SEVERE,
"Unable to connect DB, another JVM running", excp);
String errorMessage = BUNDLE.getString("DB_ERROR");
if (os == OS.Windows) {
errorMessage += "\n" + BUNDLE.getString("DB_ERROR_WINDOWS");
}
JOptionPane.showMessageDialog(null,
errorMessage,
BUNDLE.getString("DB_ERROR_TITLE"),
JOptionPane.ERROR_MESSAGE);
System.exit(1);
}
assetDB.disconnect();
}