public class ArchLoaderInit {
private static final Logger LOGGER = LoggerFactory.getLogger(ArchLoaderInit.class);
public void init(File nativeDirectory) throws
ArchLoaderException, ArchNotSupportedException {
final SigarLoader archLoader = new SigarLoader(getClass());
archLoader.setName("sigar");
final String name = archLoader.getLibraryName();
File fl = new File(nativeDirectory, name);
addNativeDirectoryToLibPath(nativeDirectory);
if (fl.exists()) {
return;
}