issue an error when failed to load any library
This commit is contained in:
parent
98566c5ad1
commit
317ca2dace
|
@ -196,14 +196,14 @@ public class LoadSnappy
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Try to load snappy in LD_PATH
|
||||||
try {
|
try {
|
||||||
System.loadLibrary("snappyjava");
|
System.loadLibrary("snappy");
|
||||||
isLoaded = true;
|
isLoaded = true;
|
||||||
}
|
}
|
||||||
catch (UnsatisfiedLinkError e) {
|
catch (UnsatisfiedLinkError e) {
|
||||||
isLoaded = false;
|
throw new SnappyError(SnappyErrorCode.FAILED_TO_LOAD_NATIVE_LIBRARY, e);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void getNativeLibraryFolderForTheCurrentOS() {
|
private static void getNativeLibraryFolderForTheCurrentOS() {
|
||||||
|
|
Loading…
Reference in New Issue