Just a note concerning 1.7's new dependency on snappy-java-1.1.0 when 
running on the Mac with Oracle JDKs.

I ran many OS's and came across an issue today with snappy-java and native 
libraries.  Basically, the correct libsnappyjava.jnilib.

Oracle JavaSE 7 and 8 use the .dylib extension, not jnilib.
In other words, System.mapLibraryName("snappyjava") returns 
libsnappyjava.dylib, not libsnappyjava.jnilib.

The snappy manifest refers to the following in Bundle-NativeCode:

org/xerial/snappy/native/Mac/x86_64/libsnappyjava.jnilib;osname=macosx;
processor=x86-64,

But this needs to be:

org/xerial/snappy/native/Mac/x86_64/libsnappyjava.dylib;osname=macosx;
processor=x86-64,

and the file also needs to exist in the jar file under that path (a copy of 
libsnappjava.jnilib)

I just updated my snappy-java-1.1.0.jar with the line above but you could 
also use the filesystem and/or properties method of specifying the 
library.  I don't use these methods b/c it requires adding a property file 
and/or setting System properties and putting the native library on the 
filesystem.  Unfortunately, the current version doesn't have a way to 
simply force the library to use the .jnilib instead.

https://snappy-java.googlecode.com/hg/INSTALL
https://code.google.com/p/snappy-java/issues/detail?id=26

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to