[zeromq-dev] ZeroMQ evaluated for Second Life

Martin Sustrik sustrik at fastmq.com
Tue Apr 7 09:07:03 CEST 2009

Steven McCoy wrote:
> 2009/4/7 Martin Sustrik <sustrik at fastmq.com>:
>> Yup. Seen it. It looks like they've had problems with loading libzmq
>> from Java - presumably it was not on the system library path. Vladimir
>> reported a similar problem with following solution:
>> public class Zmq
>> {
>>     static
>>     {
>>         System.loadLibrary ("libzmq");
>>         System.loadLibrary ("jzmq");
>>     }
>> ...
>> }

I'm kind of confused here. What Java specs say about System.loadLibrary is:

"Loads the system library specified by the libname  argument. The manner 
in which a library name is mapped to the actual system library is system 

What should I make out of that? Where does it search for the libraries? 
Java classpath? LD_LIBRARY_PATH or a particular counterpart on the given 

Libzmq is a generic non-java-specific library. Thus it should be 
installed at a location where it is accessible by the system (/usr/bin, 
system32 etc.) Why it's needed to load it explicitly then? Do Java 
disable loading libraries from the system library path somehow?

We are not experiencing the problem here so if anyone is able to give 
more precise description of what's going wrong, it would be really helpful.


More information about the zeromq-dev mailing list