Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JNI Shared Library fails to load from fragment on AIX
JNI Shared Library fails to load from fragment on AIX [message #331310] Fri, 29 August 2008 23:31 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:[Databinding] Re: newbie: How fire a changed value on a writable from a thread other than the real
Next Topic:Content Assist Problem
Goto Forum:
  


Current Time: Thu Dec 26 17:02:49 GMT 2024

Powered by FUDForum. Page generated in 0.03245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top