You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Zach Cox <zc...@gmail.com> on 2013/02/21 23:43:36 UTC
Native libraries
Hi - our James app needs to use a native library through JNI (JMagick). I'm
having trouble setting java.library.path. It seems like I should just set
this in wrapper.conf:
wrapper.java.library.path.2=/usr/lib
However I still get this when trying to call the JNI methods:
java.lang.UnsatisfiedLinkError: no JMagick in java.library.path
I've also tried this, but get the same exception:
wrapper.java.library.path.append_system_path=true
Is there some other way to set java.library.path?
Thanks,
Zach
Re: Native libraries
Posted by Ioan Eugen Stan <st...@gmail.com>.
Yes, it's fixed in beta5
https://issues.apache.org/jira/browse/JAMES-1451
On Fri, Feb 22, 2013 at 12:53 AM, Zach Cox <zc...@gmail.com> wrote:
> I think I may have solved my own problem. In james 3.0-beta4 at the bottom
> of wrapper.conf is this line:
>
> wrapper.java.library.path=../lib
>
> That seems to override the previous wrapper.java.library.path.1 and
> wrapper.java.library.path.2 properties. I commented out that line and now
> the jvm can indeed find the native libs.
>
> Thanks,
> Zach
>
>
>
> On Thu, Feb 21, 2013 at 4:43 PM, Zach Cox <zc...@gmail.com> wrote:
>
>> Hi - our James app needs to use a native library through JNI (JMagick).
>> I'm having trouble setting java.library.path. It seems like I should just
>> set this in wrapper.conf:
>>
>> wrapper.java.library.path.2=/usr/lib
>>
>> However I still get this when trying to call the JNI methods:
>>
>> java.lang.UnsatisfiedLinkError: no JMagick in java.library.path
>>
>> I've also tried this, but get the same exception:
>>
>> wrapper.java.library.path.append_system_path=true
>>
>> Is there some other way to set java.library.path?
>>
>> Thanks,
>> Zach
>>
--
Ioan Eugen Stan
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Native libraries
Posted by Zach Cox <zc...@gmail.com>.
I think I may have solved my own problem. In james 3.0-beta4 at the bottom
of wrapper.conf is this line:
wrapper.java.library.path=../lib
That seems to override the previous wrapper.java.library.path.1 and
wrapper.java.library.path.2 properties. I commented out that line and now
the jvm can indeed find the native libs.
Thanks,
Zach
On Thu, Feb 21, 2013 at 4:43 PM, Zach Cox <zc...@gmail.com> wrote:
> Hi - our James app needs to use a native library through JNI (JMagick).
> I'm having trouble setting java.library.path. It seems like I should just
> set this in wrapper.conf:
>
> wrapper.java.library.path.2=/usr/lib
>
> However I still get this when trying to call the JNI methods:
>
> java.lang.UnsatisfiedLinkError: no JMagick in java.library.path
>
> I've also tried this, but get the same exception:
>
> wrapper.java.library.path.append_system_path=true
>
> Is there some other way to set java.library.path?
>
> Thanks,
> Zach
>