[zeromq-dev] jzmq UnsatisfiedLinkError on construct -- OSX Leopard

gonzalo diethelm gdiethelm at dcv.cl
Tue May 4 19:26:37 CEST 2010

Perhaps you need to recompile the native library and reinstall it into


I don't really know much about OSX. Sorry.


Gonzalo Diethelm 



From: zeromq-dev-bounces at lists.zeromq.org
[mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of anand
Sent: Tuesday, 04 May, 2010 13:13
To: zeromq-dev at lists.zeromq.org
Subject: [zeromq-dev] jzmq UnsatisfiedLinkError on construct -- OSX




 I am running the java bindings example code (publisher). I have the
-Djava.library.path=/usr/local/lib , and I print the
System.getProperty("java.library.path"). It matches up and I know the
libjzmq.dylib are in this directory. To me it looks like its able to
load the jzmq library but failing on a dependent library.


Here is the error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: construct

      at org.zeromq.ZMQ$Context.construct(Native Method)

      at org.zeromq.ZMQ$Context.<init>(ZMQ.java:115)

      at org.zeromq.ZMQ.context(ZMQ.java:67)

      at ZeroMQPublisherClient.main(ZeroMQPublisherClient.java:12)


Here is the code snippet:

        ZMQ.Context ctx = ZMQ.context(1, 1, 0);

        ZMQ.Socket s = ctx.socket(ZMQ.PUB);

        s.bind ("tcp://lo:5555");

        for (long msg_id = 1; ; msg_id++) {

            byte msg [] = new byte [8];

            ByteBuffer bb = ByteBuffer.wrap (msg);

            bb.putLong (msg_id);

            s.send (msg, 0);



I saw an archived thread on a similar issue, but I dint get any
solutions/conclusions from it. 




Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100504/f11d0b1a/attachment.htm>

More information about the zeromq-dev mailing list