zeromq/jzmq — Issue #82: java.lang.UnsatisfiedLinkError: construct
Author: cdfeasy
Created: 2011-10-20 08:43:44+00:00
State: open

Code
public static void main(String[] args) {
ZMQ.Context ctx = ZMQ.context(1);
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);
}
}

StackTrace
Exception in thread "main" java.lang.UnsatisfiedLinkError: construct
at org.zeromq.ZMQ$Context.construct(Native Method)
at org.zeromq.ZMQ$Context.(ZMQ.java:306)
at org.zeromq.ZMQ.context(ZMQ.java:252)
at zmqtest.ZMQTest.main(ZMQTest.java:20)

Build Sources http://dl.dropbox.com/u/5596906/zeromq.zip