[zeromq-dev] ZeroMQ evaluated for Second Life
Steven McCoy
steven.mccoy at miru.hk
Tue Apr 7 03:55:24 CEST 2009
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've merged this code in just in case. Pitty that Lindenlab guys haven't
> reported the problem.
Extra work is needed for some mixed 32/64-bit platforms, some
automagically search for 64-bit libraries, some require explicit
naming differences, e.g.
/* MIT license */
if ("64".equals(System.getProperty("sun.arch.data.model"))) {
System.loadLibrary ("libzmq64");
System.loadLibrary ("jzmq64");
} else {
System.loadLibrary ("libzmq");
System.loadLibrary ("jzmq");
}
--
Steve-o
More information about the zeromq-dev
mailing list