19 package org.sleuthkit.autopsy.datamodel;
21 import java.awt.Component;
22 import java.util.logging.Level;
24 import org.openide.util.NbBundle;
26 import javax.swing.JOptionPane;
27 import org.openide.LifecycleManager;
28 import org.openide.modules.ModuleInstall;
39 if (instance == null) {
50 public void validate() throws IllegalStateException {
63 String skVersion = SleuthkitJNI.getVersion();
65 if (skVersion == null) {
66 throw new Exception(NbBundle.getMessage(
this.getClass(),
"Installer.exception.tskVerStringNull.msg"));
67 }
else if (skVersion.length() == 0) {
68 throw new Exception(NbBundle.getMessage(
this.getClass(),
"Installer.exception.taskVerStringBang.msg"));
70 logger.log(Level.CONFIG,
"Sleuth Kit Version: {0}", skVersion);
73 }
catch (Exception e) {
74 logger.log(Level.SEVERE,
"Error calling Sleuth Kit library (test call failed)", e);
77 final Component parentComponent = null;
78 final String message = NbBundle.getMessage(this.getClass(),
"Installer.tskLibErr.msg", e.toString());
79 final String title = NbBundle.getMessage(this.getClass(),
"Installer.tskLibErr.err");
80 final int messageType = JOptionPane.ERROR_MESSAGE;
82 JOptionPane.showMessageDialog(
89 LifecycleManager.getDefault().exit();
static synchronized Installer getDefault()
synchronized static Logger getLogger(String name)
static Installer instance