*
*/
// Check that the the Sleuth Kit JNI is working by getting the Sleuth Kit version number
Logger logger = Logger.getLogger(Installer.class.getName());
try {
String skVersion = SleuthkitJNI.getVersion();
if (skVersion == null) {
throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.tskVerStringNull.msg"));
} else if (skVersion.length() == 0) {
throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.taskVerStringBang.msg"));
} else {
logger.log(Level.CONFIG, "Sleuth Kit Version: {0}", skVersion); //NON-NLS
}
} catch (Exception e) {
logger.log(Level.SEVERE, "Error calling Sleuth Kit library (test call failed)", e); //NON-NLS
// Normal error box log handler won't be loaded yet, so show error here.
final Component parentComponent = null; // Use default window frame.
final String message = NbBundle.getMessage(this.getClass(), "Installer.tskLibErr.msg", e.toString());