Loading a shared library in AIX / LINUX
829000Jan 28 2011 — edited Jan 28 2011Hi,
I have an application running on AIX-64 BIT. The app is deployed on Webspshere server. I have to make use of a third party library (Sigar API's) from my application. This library requires a .so file as well. I tried to load the library using Websphere Console->Environment->Shared Libraries. I created a new configuration. In "ClassPath" entry, i gave the path of the folder where the third party library jar is copied and in the native library path, gave the path of the folder where my so file is located and restarted the server after that.
BUT ITS NOT PICKING UP THE *.SO FILE :(. Following is the error i am getting:
java.lang.UnsatisfiedLinkError: org/hyperic/sigar/Cpu.gather(Lorg/hyperic/sigar/Sigar;)V
Is there any other location like "/usr/lib" where i can put this *.so file and it will be read or loaded by the app server automatically or there is some specific procedure we need to follow for this.
Request you to tell me how to load / link / install this .so file. The name of the so file is libsigar-ppc64-aix-5.so?
I have been struggling on it for the last 2 days. Its really really urgent. I will really appreciate your help.
Thanks