issue an error when failed to load any library

This commit is contained in:
Taro L. Saito 2011-06-03 12:04:35 +09:00
parent 98566c5ad1
commit 317ca2dace
1 changed files with 3 additions and 3 deletions

View File

@ -196,14 +196,14 @@ public class LoadSnappy
return;
}
}
// Try to load snappy in LD_PATH
try {
System.loadLibrary("snappyjava");
System.loadLibrary("snappy");
isLoaded = true;
}
catch (UnsatisfiedLinkError e) {
isLoaded = false;
throw new SnappyError(SnappyErrorCode.FAILED_TO_LOAD_NATIVE_LIBRARY, e);
}
return;
}
private static void getNativeLibraryFolderForTheCurrentOS() {