Sigar UnsatisfiedLinkError

只谈情不闲聊 提交于 2019-12-01 16:50:02
Narges

I understood the problem!
I have to use the following JVM Argument:

-Djava.library.path="./lib" 

in Run Configuration, Arguments tab, VM arguments in eclipse, while the contnet of sigar-bin/lib is in lib folder.

Sigar works via JNI. As such, the appropriate .so or .dll file needs to be in the path specified by the java.library.path property.

Check your sigar distribution - the zip file, I mean. Unzip it and copy the contents of sigar-bin\lib to a location accessible by your Path, PATH, and LD_LIBRARY_PATH environment variables. Usually, only one file needs to be accessible per platform.

That should do the trick, if it doesn't, let me know and I'll see what I can do.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!