How to install SIGAR on Ubuntu-based Linux?

后端 未结 5 909
温柔的废话
温柔的废话 2021-01-18 08:23

I am using SIGAR in a java project with Maven and Spring. I have the Maven Dependency and Maven Repository included in my pom.xml file, as described in this lin

5条回答
  •  甜味超标
    2021-01-18 08:48

    Finally found the solution. I had to download SIGAR from the official source.

    Then I had to copy/paste the entire "lib" folder (with all the .so and .dll and whatnot) into the folder "main/src/webapp" of the project, which is used by Spring to store needed apps (or so I assume).

    Then after running mvn install, checking the "target" folder and running the newly generated .war file, everything runs as expected.

提交回复
热议问题