[zeromq-dev] jzmq UnsatisfiedLinkError on Linux

gonzalo diethelm gdiethelm at dcv.cl
Wed Apr 14 23:12:04 CEST 2010


> Anyone else using jzmq on Linux able to work with the latest API
> changes?  It builds fine and the shared library is loaded into the
> JVM, but I have issues resolving the JNI functions from there.
> 
>     java.lang.UnsatisfiedLinkError:
org.zeromq.ZMQ$Context.construct(III)V
>         at org.zeromq.ZMQ$Context.construct(Native Method)

Just FYI, I am the author of these changes.

> I can tell the library is getting loaded otherwise I would get a
> different UnsatisfiedLinkError prior to invoking the native method,
> such as this one:
> 
>     Exception in thread "main" java.lang.UnsatisfiedLinkError: no jzmq
> in java.library.path
> 
> Dumping the symbols from the underlying shared object, I can see
> symbols that appear to match the function signatures in the source
> code:
> 
> /usr/local/lib$ nm libjzmq.so
> ...
> 00001170 T Java_org_zeromq_ZMQ_00024Context_construct

That is really baffling. What are the contents of
org_zeromq_ZMQ_Context.h (a generated file)?

-- 
Gonzalo Diethelm



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




More information about the zeromq-dev mailing list