Tôi đang sử dụng thư viện a Hyperic SIGAR làm lib của bên thứ ba trong chương trình cài đặt của mình. Chương trình cài đặt của tôi mở gói tất cả các tệp lib thứ ba vào thư mục người dùng% TEMP% \\."không có sigar-x86-winnt.dll trong java.library.path" lỗi khi sử dụng Hyperic SIGAR trên hệ điều hành đa ngôn ngữ
Mở tất cả mọi thứ bằng tiếng Anh hệ điều hành hoạt động tuyệt vời, nhưng khi tôi đã cố gắng để chạy chương trình cài đặt của tôi trên Os Tây Ban Nha, tôi đã gặp phải lỗi sau:
thư viện java bao gồm các sigar.jar:
java.class.path = C: \ DOCUME ~ 1 \ Tây Ban Nha Letters \ CONFIG ~ 1 \ Temp \ e4j58.tmp_dir \ user \ sigar.jar
chương trình cài đặt của tôi hỗ trợ WinXP, WIN7 hệ điều hành.
Các Lỗi là:
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)'
Có ai đã gặp phải một lỗi tương tự và có thể tư vấn? Cảm ơn.
thử ví dụ này để tải các tập tin [1]: http://stackoverflow.com/questions/4691095/java-loading-dlls -by-a-relative-path-and-hide-them-inside-a-jar – Kris