ensure JNA is fully loaded when its avail, but don't fail its not

This commit is contained in:
Robert Muir 2015-05-05 11:49:40 -04:00
parent fafd67e1ae
commit 15e6d3ec6c
1 changed files with 7 additions and 1 deletions

View File

@ -107,7 +107,13 @@ public class Bootstrap {
}
});
}
Kernel32Library.getInstance();
// force remainder of JNA to be loaded (if available).
try {
Kernel32Library.getInstance();
} catch (Throwable ignored) {
// we've already logged this.
}
// initialize sigar explicitly
try {