19 package org.sleuthkit.autopsy.corelibs;
21 import com.sun.javafx.PlatformUtil;
22 import org.hyperic.sigar.Sigar;
23 import org.openide.util.NbBundle;
32 private static volatile Sigar
sigar;
36 System.setProperty(
"org.hyperic.sigar.path",
"-");
46 if (PlatformUtil.isWindows()) {
47 System.loadLibrary(
"libsigar");
49 System.loadLibrary(
"sigar");
52 sigar.enableLogging(
false);
54 }
catch (UnsatisfiedLinkError ex) {
55 String msg = NbBundle.getMessage(
SigarLoader.class,
"SigarLoader.linkErr.msg");
56 System.out.println(msg + ex.toString());
57 }
catch (Exception ex) {
58 String msg = NbBundle.getMessage(
SigarLoader.class,
"SigarLoader.linkErr.msg");
59 System.out.println(msg + ex.toString());
static volatile Sigar sigar