org.hyperic.sigar.SigarException: java.library.path 中没有 sigar-amd64-winnt.dll [英] org.hyperic.sigar.SigarException: no sigar-amd64-winnt.dll in java.library.path

查看:40
本文介绍了org.hyperic.sigar.SigarException: java.library.path 中没有 sigar-amd64-winnt.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的测试程序的依赖项是 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆