Exception in thread “main” java.lang.UnsatisfiedLinkError: … \jzmq.dll: Can't find dependent libraries

ぃ、小莉子 提交于 2019-12-11 03:47:25

问题


I have a java application using ZMQ. I've been able to run it on my Win7 PC where I placed the jzmq.dll in the same folder where the jar executable is, then I run it by the command "java -jar myapp.jar".

My next step is to move it to run on a server. So I copied it all over to the server (Win 2008), the files as well as the directory structure. Apparently the very same command that gets it to work on my PC doesn't work on the server. Any ideas why and what should I do to get it run on the server as well?

Following the first comment below I've copied to the server all the ZMQ related folders I have, preserving their directory structure. Still getting the same error. More details on the error message are:


回答1:


jzmq.dll needs the related libzmq.dll whose libzmq.lib is used to compile. Now you may think adding libzmq.dll to system load path and hope to get zmq running. It won't. You need to change the name of libzmq.dll to the versioned one. In my case it's "libzmq-v120-mt-gd-4_0_4.dll".



来源:https://stackoverflow.com/questions/22209625/exception-in-thread-main-java-lang-unsatisfiedlinkerror-jzmq-dll-cant

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