Dear all,
I'm new to Sigar and I'm developing some features using Sigar. I'm deploying a java application through webstart. Here is my jnlp:
I've included the resources tag
<resources os="Mac OS X">
<nativelib href="/static/lib/sigar-mac-x86.jar"/>
</resources>
Where I included libsigar-universal-macosx.dylib in sigar-mac-x86.jar and signed it.
In the Java application, I'm loading the library as follows:
try
{
System.loadLibrary("libsigar-universal-macosx");
return true;
}
catch (UnsatisfiedLinkError ule)
{
Log.severe("Cannot find library: " + ule.getMessage());
}
I always got the UnsatisfiedLinkError exception. However, the same code works fine on Windows.
Could anyone give me any clue?
Thanks!