I am able to run examples of SIGAR1.6 in java Eclipse (for doing this, I have to use sigar.jar,log4j.jar and sigar-amd64-winnt.dll in java build configuration path).
Now I am trying to do the same using Maven in Eclipse. I am not very familiar with Maven...
1)what should be the pom entries for adding artificat(sigar) in maven/eclipse. I looked at following website, but search on SIGAR yielded results that looked unfamiliar with what I downloaded from https://support.hyperic.com/display/SIGAR/Home#Home-download
The Central Repository Search Engine
2)I used following as starting point to add artificat(SIGAR) into my maven/eclipse project
http://stackoverflow.com/questions/11731634/problems-using-sigar-with-maven2
But then I get following error. How would I make sure maven downloads dependencies (like sigar-amd64-winnt.dll), assuming I got the right artifacts from above stackoverlow website (which I doubt, because it is an old thread)
no sigar-amd64-winnt.dll in java.library.path
org.hyperic.sigar.SigarException: no sigar-amd64-winnt.dll in java.library.path
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100)
at org.hyperic.sigar.cmd.Shell.<init>(Shell.java:50)
at org.hyperic.sigar.cmd.SigarCommandBase.<init>(SigarCommandBase.java:75)
at com.harmonia.cbm.dataacquistion.pal.hello.<init>(hello.java:39)
at com.harmonia.cbm.dataacquistion.pal.hello.main(hello.java:109)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getCpuInfoList()[Lorg/hyperic/sigar/CpuInfo;
at org.hyperic.sigar.Sigar.getCpuInfoList(Native Method)
at com.harmonia.cbm.dataacquistion.pal.hello.output(hello.java:62)
at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:186)
at com.harmonia.cbm.dataacquistion.pal.hello.main(hello.java:109)