How can I bundle a library that includes nativelibraries in my JAR?

320 Views Asked by At

I made a project in Netbeans 6.8 and added a third-party library which included some nativelibraries. When I made a JAR of my project, only the third-party JAR was included; its nativelibrary was not. Therefore, I am unable to run my project.

How can I resolve this issue?

1

There are 1 best solutions below

0
Andy On BEST ANSWER

The native library is loaded just like a resource. Try placing it in a resources folder.