Message from Eran on the forum:
Hi Uwe,
I'm running JPathWatch 0.94 on a Linux machine using IBM's JVM (this is a requirement since I'm using WebShpere) and I'm getting the following JNI UnsatisfiedLinkError exception:
[...]
I traced down the issue to the static NativeLibLoader#PlatformArchLibSet array. It appears IBM's JVM sets the "os.arch" system property to "x86" as opposed to Sun's JVM which sets it "i386". As a result the proper configuration is not found in the PlatformArchLibSet array and JPathWatch attempts a naive load of the native module and obviously fails.
Adding the following lines to the array code would solve the issue:
new PlatformArchLibSet("Linux", "x86", new LibraryImplementation[]{
new LibraryImplementation("jpathwatch-native", "GNU-Linux-x86/libjpathwatch-native.so"),
}, null ),
I'd appreciate if you could add this to future (hopefully 0.95) versions of JPathWatch.
Cheers,
-Eran