Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

Difficulty in configuring Sigar API in Eclipse project

$
0
0
Dear all,

I'm a newbie to Sigar API. I need to develop a simple java application to validate the system configurations (CPU, RAM, HD etc) against a given set of recommended configurations.

I'm developing in Eclipse Indigo, and in my project I have added sigar.jar (sigar 1.6.4 is used) to the project build path and set it's native library location to sigar-bin/lib. However when I try to retrieve configuration info using Sigar API, it always returns null, 0 results.  I used CpuInfo class to retrieve my cpu info, and NetInfo to get network info, thus far  was unsuccessful with them. (eg: cpu.getTotalCores() always return 0 and netInfo.getDefaultGateway() always returns null).

Is this because the native library path is not properly set to my project classpath? Or some incompatibility with Sigar API and my system? Can you guys please give me any tip on what could be the reason for my application not to work as expected?

My system configurations :
    CPU:  Intel Core i7-2630QM CPU @ 2.00GHz × 8
    RAM: 8 GB
    OS : Ubuntu 11.04 (64 bit)
Any help on this matter is much appreciated.

Thanks,
Dileepa

Viewing all articles
Browse latest Browse all 52618

Trending Articles



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