Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

Cannot load libsigar-universal-macosx.dylib from jnlp on Mac

$
0
0

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!


Viewing all articles
Browse latest Browse all 193198

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>