From: jrallen9 <jus...@te...> - 2010-08-23 16:22:26
|
Effectively you have several cascading exceptions. The first one is: java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getCpuListNative() The reason for this is that the JVM has not loaded the dylib you specified. There are a number of reasons for this problem. I would have to see your source code and determine how you load the dylib and how you instantiate the Sigar object before you make the call to getCpuList(). In general you might try: System.load("./lib/libsigar-universal64-macosx.dylib"); Sigar session = new Sigar(); CpuPerc[] cpuPercent = session.getCpuPercList(); The above path needs to be where you have the dylib located in your filesystem. An example it might be "/opt/mySigarApp/lib/libsigar-universal64-macosx.dylib" Try creating a basic console program to get this functionality down then copy the working code over to your Charting program. Good Luck, Justin Allen |