From: Dileepa J. <dil...@gm...> - 2012-01-18 05:53:25
|
Can somebody give me instructions to setup Sigar.jar with relevant native libraries to start developing my application? I hope Sigar API supports Ubuntu 11.04 (64bit), having trouble in setting up Sigar as the API classes don't provide expected results at the moment. Thanks, Dileepa On Tue, Jan 17, 2012 at 11:15 AM, Dileepa Jayakody < dil...@gm...> wrote: > Hi devs, > > > I'm Dileepa, a relatively new guy in software development. > I have a requirement of writing a small app to validate the system > configurations with a set of recommended minimal configurations. This > includes processor, memory, open-file descriptors etc. Sigar API caught my > eye as a easy-to-use portable API with java binding (I'm developing in > java). > > However I'm unable to retrieve my system configuration info using Sigar > API. 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). > > I'm aware of the requirement of having the Sigar native libraries in the > application classpath. I'm developing in eclipse and have configured the > build-path of my project with sigar-1.6.0.14.jar with it's native library > location set to: sigar-bin/lib. I assume that would fulfil the native > library loading requirement of sigar. 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) > > Does Sigar support above system configurations/architecture/OS? > Any help on this matter is much appreciated. > > Thanks, > Dileepa > > |