gpt4 book ai didi

multilingual - 在多语言操作系统上使用 Hyperic SIGAR 时出现 "no sigar-x86-winnt.dll in java.library.path"错误

转载 作者:行者123 更新时间:2023-12-04 04:35:20 24 4
gpt4 key购买 nike

我正在使用 a Hyperic SIGAR库作为我的安装程序中的第三方库。
我的安装程序将所有第三个 lib 文件解压到 %TEMP%\\user 文件夹。

在英语操作系统上一切正常,但是当我尝试在西类牙语操作系统上运行我的安装程序时,
我遇到了以下错误:

java 库包含 sigar.jar:

java.class.path=C:\DOCUME~1\Spanish Letters\CONFIG~1\Temp\e4j58.tmp_dir\user\sigar.jar

我的安装程序支持WinXP、WIN7 OS。

错误是:

no sigar-x86-winnt.dll in java.library.path
org.hyperic.sigar.SigarException: no sigar-x86-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 I4jScript_Internal_1.eval(I4jScript_Internal_1.java:23)
at I4jScript_Internal_1.evaluate(I4jScript_Internal_1.java:79)
at com.install4j.runtime.installer.helper.Script.evaluate(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(Unknown Source)
at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(Unknown Source)
at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.handleStartup(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)
at com.install4j.runtime.installer.Installer.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)'

有人已经遇到过类似的错误并且可以提供建议吗?
谢谢。

最佳答案

你应该设置系统属性( java.library.path )

例如)java ... -Djava.library.path=../lib/sigar/lib ...java.library.path是包含 sigar-x86-winnt.dll 的文件夹

https://forums.oracle.com/forums/thread.jspa?threadID=1299532

关于multilingual - 在多语言操作系统上使用 Hyperic SIGAR 时出现 "no sigar-x86-winnt.dll in java.library.path"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8832751/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com