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 {
66 if (skVersion == null) {
67 throw new Exception(NbBundle.getMessage(
this.getClass(),
"Installer.exception.tskVerStringNull.msg"));
68 }
else if (skVersion.length() == 0) {
69 throw new Exception(NbBundle.getMessage(
this.getClass(),
"Installer.exception.taskVerStringBang.msg"));
71 logger.log(Level.CONFIG,
"Sleuth Kit Version: {0}", skVersion);
74 }
catch (Exception e) {
75 logger.log(Level.SEVERE,
"Error calling Sleuth Kit library (test call failed)", e);
79 final Component parentComponent = null;
80 final String message = NbBundle.getMessage(this.getClass(),
"Installer.tskLibErr.msg", e.toString());
81 final String title = NbBundle.getMessage(this.getClass(),
"Installer.tskLibErr.err");
82 final int messageType = JOptionPane.ERROR_MESSAGE;
84 JOptionPane.showMessageDialog(
92 LifecycleManager.getDefault().exit();
static synchronized Installer getDefault()
static String getVersion()
static Installer instance
static Logger getLogger(String name)