I have developed a project with swing, maven with some native libraries. Now i have an issue with calling SO from java after generating jar from maven package. I included so in POM.xml. And it included that file inside jar.But it wont link both.
I had an error while executing jar like " Exception in thread "main" java.lang.UnsatisfiedLinkError: no projectso in java.library.path"
<resources>
<resource>
<filtering>false</filtering>
<directory>${project.basedir}/lib</directory>
<includes>
<include>my.so</include>
<include>cv2.so</include>
</includes>
</resource>
</resources>
And also want to add library folder and export it into jar.Is there any way to do it?