本文介绍了如何在基于Ubuntu的Linux上安装SIGAR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Maven和Spring的java项目中使用SIGAR。我在我的 pom.xml 文件中包含Maven Dependency和Maven Repository,如以下链接所述:
下载SIGAR。

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

然后我必须复制/粘贴整个lib文件夹(包含所有 .so .dll 和诸如此类的东西)进入项目的main / src / webapp文件夹,Spring用它来存储所需的应用程序(或者我假设)。

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).

然后在运行 mvn install 之后,检查target文件夹并运行新生成的 .war 文件,一切都按预期运行。

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

这篇关于如何在基于Ubuntu的Linux上安装SIGAR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 21:16