Hi, I've accidentally found this blog that suggests that storing pointers in java 'long' type is eventually faulty -- which is exactly what we do in JZMQ. The proposed solution is to use ByteBuffer instead: http://clebertsuconic.blogspot.com/2010/05/pointers-in-jni-c.html Martin