[
https://issues.apache.org/jira/browse/NIFI-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064031#comment-15064031
]
Michael Moser commented on NIFI-1302:
-------------------------------------
Yeah, everything I remember and found online about dynamic libraries on *nix
operating systems is that libLIBRARY.so is preferred. In the NarClassLoader I
left in the search for a file named LIBRARY.so to maintain backward
compatibility with previous NiFi releases, but I moved it to the last file name
to look for.
I also read that Java 8 supports static libraries of the form libLIBRARY.a, but
I'm no expert on that, so I avoided it for now.
> Case where NarClassLoader loading a native library doesn't work
> ---------------------------------------------------------------
>
> Key: NIFI-1302
> URL: https://issues.apache.org/jira/browse/NIFI-1302
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.4.0
> Reporter: Michael Moser
> Assignee: Michael Moser
> Fix For: 0.5.0, 0.4.1
>
> Attachments: NIFI-1302.patch
>
>
> I have a native library called libhello.so, which I use with JNI. When I
> include libhello.so in my NAR's META-INF/bundled-dependencies/native/
> directory, the NiFi framework cannot find the library.
> java.lang.UnsatisfiedLinkError: no hello in java.library.path
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)