Fixes issue 19

This commit is contained in:
Taro L. Saito 2011-06-21 10:34:22 +09:00
parent 68ff06883b
commit e2fffaddb9
1 changed files with 3 additions and 3 deletions

View File

@ -205,8 +205,8 @@ public class LoadSnappy
return;
// Try loading the library from org.xerial.snappy.lib.path library path */
String snappyNativeLibraryPath = System.getProperty("org.xerial.snappy.lib.path");
String snappyNativeLibraryName = System.getProperty("org.xerial.snappy.lib.name");
String snappyNativeLibraryPath = System.getProperty(KEY_SNAPPY_LIB_PATH);
String snappyNativeLibraryName = System.getProperty(KEY_SNAPPY_LIB_NAME);
// Resolve the library file name with a suffix (e.g., dll, .so, etc.)
if (snappyNativeLibraryName == null)
@ -224,7 +224,7 @@ public class LoadSnappy
if (LoadSnappy.class.getResource(snappyNativeLibraryPath + "/" + snappyNativeLibraryName) != null) {
// Temporary library folder. Use the value of java.io.tmpdir
String tempFolder = new File(System.getProperty(System.getProperty(KEY_SNAPPY_TEMPDIR), "java.io.tmpdir"))
String tempFolder = new File(System.getProperty(KEY_SNAPPY_TEMPDIR, System.getProperty("java.io.tmpdir")))
.getAbsolutePath();
// Try extracting the library from jar