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

anand krishnamurthy anandkris78 at gmail.com
Wed May 5 00:16:46 CEST 2010


recompile the java binding source again? But I have not made any changes to
the source iteself? I had the library compiled fresh on my box, downloaded
the release version of the java binding code.




On Tue, May 4, 2010 at 10:26 AM, gonzalo diethelm <gdiethelm at dcv.cl> wrote:

>  Perhaps you need to recompile the native library and reinstall it into
> /usr/local/lib?
>
>
>
> 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 krishnamurthy
> *Sent:* Tuesday, 04 May, 2010 13:13
> *To:* zeromq-dev at lists.zeromq.org
> *Subject:* [zeromq-dev] jzmq UnsatisfiedLinkError on construct -- OSX
> Leopard
>
>
>
> Hi,
>
>
>
>  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.
>
>
>
> thanks
>
> Andy
>
> ------------------------------
>
> 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. 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.
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100504/3fa45b46/attachment.htm>


More information about the zeromq-dev mailing list