JNI Shared Library fails to load from fragment on AIX [message #331310] |
Fri, 29 August 2008 23:31 |
Eclipse User |
|
|
|
Originally posted by: amir.nospam_pyrus.us
I have a host plug-in that contains a class with native methods (JNI).
I have created a fragment for each platform and have placed the shared
library for the platform at the root of the fragment folder. I have also
set the platform filters appropriately in each manifest file.
When I launch eclipse, the shared library is loaded on Windows, Linux
and Solaris, but it fails to load on AIX. I have compared the manifest
and build.properties files and I don't see any difference with the
exception of platform filters, and bundle names.
The only possible way to make sure the shared library is loaded is to
set the LIBPATH to the fragment folder containing the library.
Has anyone else seen this problem? Is this a bug? Is there a workaround?
Amir
|
|
|
Re: JNI Shared Library fails to load from fragment on AIX [message #331330 is a reply to message #331310] |
Tue, 02 September 2008 02:09 |
Eclipse User |
|
|
|
Originally posted by: amir.nospam_pyrus.us
Problems solved!
All I had to do was to change the library extension from '.so' to '.a'.
Amir Kouchekinia wrote:
>
> I have a host plug-in that contains a class with native methods (JNI). I
> have created a fragment for each platform and have placed the shared
> library for the platform at the root of the fragment folder. I have also
> set the platform filters appropriately in each manifest file.
>
> When I launch eclipse, the shared library is loaded on Windows, Linux
> and Solaris, but it fails to load on AIX. I have compared the manifest
> and build.properties files and I don't see any difference with the
> exception of platform filters, and bundle names.
>
> The only possible way to make sure the shared library is loaded is to
> set the LIBPATH to the fragment folder containing the library.
>
> Has anyone else seen this problem? Is this a bug? Is there a workaround?
>
> Amir
|
|
|
Powered by
FUDForum. Page generated in 0.26309 seconds