Hello,
I suspect the cause of the problem is that the library you're trying to load cannot be found.
To check this, can you try to surround your System.loadLibrary("libraryName") with a try{} catch{} block, for example like this:
try {
System.loadLibrary("libraryName");
} catch(Error e) {
e.printStackTrace();
throw e;
}
I made a simple test on my side and got the following error:
java.lang.UnsatisfiedLinkError: no eclipse_1406 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at test.node.nativelib.NativeLibTask.run(NativeLibTask.java:49)
... 7 more
Basically, this means my library cannot be found in any of the paths specified by the system property "java.library.path".
On Windows, this property is a copy of the PATH environment variable, and on Linux it is a copy of LD_LIBRARY_PATH. See
this article for more details.
So to successfully load the library, you have to either add its directory to the PATH or LD_LIBRARY_PATH environment variable, or move it to a directory that is already in the envrionment variable.
Could you let us know if this is the problem you are facing?
Sincerely,
-Laurent