How to use SIGAR with maven on Linux?

I am trying to run SIGAR in my linux project using maven for dependencies and a spring structure. In my Maven pom.xml file, I added the Maven dependency and the Maven repository according to the official site.

However, this is not enough. Now I have an error:

 [DEBUG][Sigar]: no libsigar-amd64-linux.so in java.library.path org.hyperic.sigar.SigarException: no libsigar-amd64-linux.so in java.library.path 

I was looking for the maven website and could not find the jad amd64-linux that I needed and did not know how to add it using Maven.

How to fix the problem?

+6
source share
1 answer

The answer to another question should solve your problem: How to install SIGAR on Linux based on Ubuntu?

The problem is with the missing lib files from your java.library.path projects (in the same folder where the Sigar .jar file is stored), the lib files usually should come with a cigar bank.

+2
source

All Articles