[ 
https://issues.apache.org/jira/browse/NIFI-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15062899#comment-15062899
 ] 

Michael Moser commented on NIFI-1302:
-------------------------------------

It appears that the NarClassLoader method findLibrary(final String libname) 
will attempt to load

META-INF/bundled-dependencies/native/hello.so
META-INF/bundled-dependencies/native/hello.dll

but it should also look for

META-INF/bundled-dependencies/native/libhello.so

I will work on a patch.

> 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.4.1
>
>
> 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)

Reply via email to