Hi,
I have a certain requirements where I need to start & stop the service & kill if it is not stopping. I found the Sigar API provides the cross platform functionality for the same. I just make a demo application to test. My Demo app is working fine in windows environment. When I am testing the same app in Linux (Ubuntu) I am getting following errors.
I added the libsigar-x86-linux.so file to my java library path. Even then when I am trying to read all services by using Service.getServiceNames(); gives me UnsatisfiedLinkError. if I am not included the same .so file then it is showing UnsatisfiedLinkError and missing the library libsigar-x86-linux.so.
If I am adding .so file to library path then it is showing while executing the Service.getServiceNames() method. I am using java 1.7 & Sigar 1.6.4 version.
Do we need to include .h (sigar\include folder) files to java bin folders ?
What is happening in my case, please help me to solve this issue.
Regards
Sekhar