org.hyperic.sigar.SigarException: java.library.path 中没有 sigar

编程入门 行业动态 更新时间:2024-10-27 06:19:52
本文介绍了org.hyperic.sigar.SigarException: java.library.path 中没有 sigar-amd64-winnt.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我的测试程序的依赖项是 org.fusesource.sigar,我还在我的类路径中添加了 sigar-1.6.4.jar.我知道将 sigar-amd64-winnt.dll 添加到我的类路径可能会有所帮助,问题是我在哪里可以找到这个文件?我已经搜索过,甚至尝试下载,但没有成功.

dependency for my test program is org.fusesource.sigar and I have also added sigar-1.6.4.jar in my classpath. I understand that adding sigar-amd64-winnt.dll to my classpath might help, the question is where do I find this file? I have searched and even tried to download it without any success.

非常感谢您在这方面的帮助

Your assistance will be greatly appreciated in this regard

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.win32.Win32.<clinit>(Win32.java:29)
        at com.mycompany.testadobeinstalled.TestAdobe.main(TestAdobe.java:28)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.hyperic.sigar.win32.RegistryKey.RegOpenKey(JLjava/lang/String;)J
        at org.hyperic.sigar.win32.RegistryKey.RegOpenKey(Native Method)
        at org.hyperic.sigar.win32.RegistryKey.openSubKey(RegistryKey.java:221)
        at com.mycompany.testadobeinstalled.TestAdobe.main(TestAdobe.java:28)

推荐答案

下载 sigar 包 这里.

Download the sigar package here.

将文件和浏览器解压到 sigar-bin/lib.在这个文件夹中是所有的 DLL.

Unzip the file and browser to sigar-bin/lib. In this folder are all DLL's.

这篇关于org.hyperic.sigar.SigarException: java.library.path 中没有 sigar-amd64-winnt.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 21:00:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1123447.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:sigar   hyperic   org   SigarException   path

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!