I have never worked with maven but a lot with JNI.

Have you specified the Native Library Path in the IDE that you´re using? If you use IDE like NetBeans or Eclipse you have to specify where the Java Native Library (for certain java .jar library is) is located (I mean the .dll or .so) when adding the .jar files to IDE.

For ex. in Eclipse: Right click on project -> Properties -> Java Build Path -> Libraries (on the tab bar) -> Click on the library (and expand it) and there you can find Native library location. You have only to specify the path where .so files are located. You have to do similar procedure on NetBeans: I think you have to press Project Properties -> Libraries and there you find these things.

Hope it was helpful :)

Related Query

More Query from same tag