in src/main/java/org/apache/commons/crypto/NativeCodeLoader.java [234:252]
static Throwable loadLibrary() {
try {
final File nativeLibFile = findNativeLibrary();
if (nativeLibFile != null) {
// Load extracted or specified native library.
final String absolutePath = nativeLibFile.getAbsolutePath();
debug("%s System.load('%s')", SIMPLE_NAME, absolutePath);
System.load(absolutePath);
} else {
// Load preinstalled library (in the path -Djava.library.path)
final String libName = NATIVE_LIBNAME;
debug("%s System.loadLibrary('%s')", SIMPLE_NAME, libName);
System.loadLibrary(libName);
}
return null; // OK
} catch (final Exception | UnsatisfiedLinkError t) {
return t;
}
}