Merge pull request #10989 from rmuir/jna_optional

ensure JNA is fully loaded when its avail, but don't fail its not
This commit is contained in:
Robert Muir 2015-05-05 09:03:16 -07:00
commit afdec4c84c
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 {