Hello,
I work at a Servoy runtime application and I implemented a plugin for it.
In the plugin I have a class which calls native functions using JNI.
I run the application on Mac.
If I use my plugin in Servoy the "java.lang.UnsatisfiedLinkError" occurs, because the jni library (for example libmyapp.jnilib) cannot be found.
I put this library in the plugins and lib folder of Servoy, but the error still occurs.
To see what is wrong I made a test.jar with a class that uses this library and run it from a console with:
"java -jar test.jar" and it works fine only if the jni library is located in the same folder.
If it is on a different path I must use java -jar -Djava.library.path=/...
test.jar to tell java where to find the library.
Can somebody tell me how can I set the java.library.path in Servoy?
Maybe this way it will find my library.
Thank you