[zeromq-dev] java.lang.UnsatisfiedLinkError: no jzmq in java.library.path

jac089-cp at yahoo.com jac089-cp at yahoo.com
Wed Aug 1 00:19:36 CEST 2012


Hi,

I am running Fedora 17 with ZMQ 2.2. It works fine under C, but I get the following error in Java when I execute the following command:

java -Djava.library.path=/usr/local/lib  -cp /home/john/jzmq/src/zmq.jar:.  local_lat tcp://127.0.0.1:5000 1 100

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jzmq in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
    at org.zeromq.ZMQ.<clinit>(ZMQ.java:34)
    at local_lat.main(local_lat.java:36)


Here is what I have done so far:

1) Built zqm and jzmq on the same box (Fedora 17).
2) Followed the instructions here for Fedora: http://www.zeromq.org/bindings:java (***EXCEPT*** I am using zmq stable release 2.2 and NOT 2.1.10.)
3) Verified that libzmq is in /usr/local/lib, and that my java.library.path includes /usr/local/lib. 
4) Verfied that the classpath includes zmq.jar. 
5) Attempted to run it from both Eclipse and the shell  with the same resulting error.

It appears that the native library cannot be found.... but could it be the incorrect version of zmq (2.2 vs 2.1.10)?

Any help would be greatly appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120731/a072ddf4/attachment.htm>


More information about the zeromq-dev mailing list