JNI Shared Library fails to load from fragment on AIX [message #331310] |
Fri, 29 August 2008 23:31 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.02530 seconds