线程"main"中的异常java.lang.UnsatisfiedLinkError:... \ jzmq.dll:找不到依赖的库 [英] Exception in thread "main" java.lang.UnsatisfiedLinkError: ... \jzmq.dll: Can't find dependent libraries

查看:297
本文介绍了线程"main"中的异常java.lang.UnsatisfiedLinkError:... \ jzmq.dll:找不到依赖的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用ZMQ的Java应用程序.我已经能够在Win7 PC上运行它,将jzmq.dll放在jar可执行文件所在的文件夹中,然后通过命令"java -jar myapp.jar"运行它.

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".

我的下一步是将其移动到服务器上.因此,我将其全部复制到服务器(Win 2008),文件以及目录结构中.显然,使它在我的PC上运行的相同命令在服务器上不起作用. 有什么想法为什么以及我应该怎么做才能使其同样在服务器上运行?

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?

在下面的第一条评论之后,我将拥有的所有与ZMQ相关的文件夹复制到服务器,并保留了它们的目录结构.仍然出现相同的错误.关于错误消息的更多详细信息是:

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:

推荐答案

jzmq.dll需要相关的libzmq.dll,其libzmq.lib用于编译.现在,您可能会考虑将libzmq.dll添加到系统加载路径,并希望使zmq运行.不会的您需要将libzmq.dll的名称更改为版本号.对于我来说,它是"libzmq-v120-mt-gd-4_0_4.dll".

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".

这篇关于线程"main"中的异常java.lang.UnsatisfiedLinkError:... \ jzmq.dll:找不到依赖的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆