Open nrinaudo opened 8 years ago
Well, don't I feel stupid now. If I modify the code to load the dynamic library explicitly, it works:
java.lang.Runtime.getRuntime().load("./lib/libUnitexJni.dylib")
It might be interesting to modify the code to load the appropriate library at boot-time, as JNI is often seen as black magic and hugely confusing to developers. I'd be happy to submit a PR if you feel it's worth it.
After following the (clear!) instructions on OS X, I get to the point where I can execute the project with its default arguments. This fails almost immediately with an
UnsatisfiedLinkError
:I'm at a bit of a loss there, since some Unitex code is obviously executed, if only
Jni.isUnderWindows()
...