To try and identify what was happening, I imported the Maven project into Eclipse and ran the unit test that depends on the native code in the .nar file
If I load the .nar file directly with
System.load(<abs path to .nar file>);
in place of
NarSystem.loadLibrary();
then I get the error:
native-general.1.0.0: Invalid ELF header
Looking at one of the other posts, there is a comment
> The .nar files buy you mainly the ability to store the files in Maven
> repositories. However, as they contain native libraries, they usually
> cannot be used as-are, but have to be unpacked.
So my questions are:
1) how do I unpack the .nar file such that
System.load(<abs path to unpacked .nar file>);
will not give an error
2) How do I then get
NarSystem.loadLibrary();
to not result in an ULE
I've looked at various examples and used them as the basis for my build:
http://blog.bigpixel.ro/2012/07/building-cc-applications-with-maven/
https://resources.riskfocusinc.com/portal/display/PUBLIC/Maven+NAR+Plugin+Tutorial
but whatever I do, I can't get past the ULE
Thanks for reading and any help