问题描述
我在安装程序中使用 Hyperic SIGAR 库作为第三方库.我的安装程序将所有第三个lib文件解压缩到%TEMP%\\ user文件夹中.
I am using a Hyperic SIGAR library as third party lib in my installation program.My installation program unpacks all third lib files to the %TEMP%\\user folder.
在英语操作系统上,一切正常,但是当我尝试在西班牙语操作系统上运行安装程序时,我遇到以下错误:
On English OS's everything works great, but when i tried to run my setup program on Spanish Os,I've encountered the following error:
java库包含sigar.jar:
the java library includes the sigar.jar:
java.class.path = C:\ DOCUME〜1 \ 西班牙语字母 \ CONFIG〜1 \ Temp \ e4j58.tmp_dir \ user \ sigar.jar
java.class.path=C:\DOCUME~1\Spanish Letters\CONFIG~1\Temp\e4j58.tmp_dir\user\sigar.jar
我的安装程序支持WinXP和WIN7 OS.
My installation program supports WinXP, WIN7 OS's.
错误是:
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)'
有人已经遇到过类似的错误并且可以建议吗?谢谢.
Is someone already encountered a similar error and can advise?Thanks.
推荐答案
sigar-x86-winnt.dll放在当前用户目录中,它将起作用
sigar-x86-winnt.dll put in the current user directory, it will work
这篇关于"java.library.path中没有sigar-x86-winnt.dll"多语言操作系统上使用Hyperic SIGAR时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!