Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Java binding for ZeroMQ

Subscribe to updates I use jzmq

Statistics on jzmq

Number of watchers on Github 515
Number of open issues 78
Average time to close an issue 30 days
Main language Java
Average time to merge a PR 1 day
Open pull requests 4+
Closed pull requests 5+
Last commit over 2 years ago
Repo Created over 9 years ago
Repo Last Updated over 1 year ago
Size 1.43 MB
Homepage http://www.zeromq...
Organization / Authorzeromq
Page Updated
Do you use jzmq? Leave a review!
View open issues (78)
View jzmq activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating jzmq for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

What is JZMQ?

This is the Java language binding for libzmq (aka ZeroMQ, 0MQ).

Build Status

The latest javadocs.

Building and Installing JZMQ

To build you need to have the libzmq library already installed, then you run:

cd jzmq-jni/
make install
cd ..
mvn package

If you hope to install to your local maven, then you should run:

mvn install -Dgpg.skip=true

Avoiding JNI

JZMQ uses JNI to wrap libzmq for the best performance. If performance isn't your primary goal, look at the JeroMQ project, which is a pure Java implementation that provides an identical API to JZMQ, and uses the same protocol.

Building Packages

To build a Debian package, run:

$ dpkg-buildpackage -rfakeroot

To build an RPM package, run:

$ rpmbuild -tb jzmq-X.Y.Z.tar.gz

Where X.Y.Z is replaced with the version that you've downloaded.

If configure can't find your libzmq installation, you can tell it where to look, using e.g. --with-zeromq=/usr/local.

You may want to take a look at for additional hints.

For more information, refer to the MQ website at

On Mac OS X you may need to compile and make install pkg-config if configure fails with syntax error near unexpected token newline.
See for details.

You may also need to symlink the header files of your standard Java installation (e.g. /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers/*.h) into a suitable directory (e.g. /usr/local/include) and point the JAVA_HOME environment variable to the parent directory (e.g./usr/local).


YourKit is kindly supporting ZeroMQ project with its full-featured Java Profiler.


Free use of this software is granted under the terms of the GNU Lesser General Public License (LGPL). For details see the files COPYING and COPYING.LESSER included with the Java binding for MQ.

jzmq open issues Ask a question     (View All Issues)
  • about 3 years No release in over two years
  • about 3 years Resource leak when simultaneously creating a socket pair from two threads
  • about 3 years Which version of jzmq should be used for zeromq 4.1.4
  • about 3 years MSCV build is broken
  • about 3 years Error when adding libzmq to android
  • about 3 years bug on ZeroCopySend
  • over 3 years jzmq version 3.1.0 not working with zeromq version 3.2.5 on RHEL 7.
  • over 3 years error building jzmq using maven
  • over 3 years JMX performance metrics
  • over 3 years JNI's getBytesSockopt and setBytesSockopt should take care of null termination
  • over 3 years sendZeroCopy & ByteBuffer.allocateDirect issue
  • over 3 years Problem: mvn install requires GPG passphrase
  • almost 4 years Installing zeroMQ
  • almost 4 years UnsatisfiedLinkError: org.zeromq.ZMQ$Curve.generateKeyPair
  • almost 4 years Build error: ‘zmq_event_t’ was not declared in this scope
  • almost 4 years Problem: Haven't released to maven central in a 1.5 years
  • almost 4 years jzmq and Java ME 8.2
  • about 4 years Build error on ubuntu 14.04 with libzmq3
  • about 4 years Snapshot of master as a Maven dependency
  • about 4 years Odd error when trying to get the EAGAIN constant
  • about 4 years Documentation for building with embedded native libraries
  • over 4 years Using existing ZMQ context from the C/C++ ZMQ library
  • over 4 years Static linking jzmq library with other
  • over 4 years Excluding JDK files when compiling for Android
  • over 4 years Usefullness / Deprecation ZContext
  • over 4 years Unknown org.zeromq.ZMQ$Error enum code exception
  • over 4 years A fatal error has been detected by the Java Runtime Environment:
  • over 4 years /usr/local/lib/[0x7f9086d0b0ec]
  • almost 5 years Issue building jzmq
  • almost 5 years 64bit version of jzmq.dll
jzmq open pull requests (View All Pulls)
  • Load multiple native libraries
  • Added ZMQ.STREAM for native tcp bidirectional communication
  • Fixed CMake build for windows 64 bit
jzmq questions on Stackoverflow (View All Questions)
  • ZeroMQ / JZMQ - Subscriber does not receive any message
  • Which version of jzmq is compatible with zeromq 3.2.3?
  • How do I compile jzmq for ZeroMQ on OSX?
  • How to handle errors with JZMQ?
  • Error: no jzmq in java.library.path
  • Using JZMQ with EPGM Transport Is Not Sending or Receiving Data
  • Apache Storm Installation without ZeroMQ/JZMQ
  • java.lang.UnsatisfiedLinkError: no jzmq in java.library.path
  • ZMQ: Assertion Failed with JZMQ
  • How to check if JZMQ socket is connected
  • Does "jzmq" support ZeroMQ Version 3?
  • JZMQ error: no thread available
  • Compiling JZMQ on Ubuntu
  • jzmq vs jeromq for getting ZeroMQ up and running, jeromq works but not jzmq, but WHY?
  • Installing the Java ZeroMQ binding (jzmq) using Maven, Missing Native Code Library
  • Why one might need JeroMQ if it can use JZMQ?
  • ZeroMQ - jzmq recveroCopy fail to get any message while recv() works
  • ZeroMQ / JZMQ - Subscriber message filtering NOT working
  • Hadoop and JZMQ - no jzmq in java.library.path
  • Is there a memory leak in JZMQ 2.x.x on top of ZeroMQ 3.2.3 while publishing on multicast?
  • how to implement Pub-Sub Network with a Proxy by using XPUB and XSUB in ZeroMQ(jzmq) 3.xx
  • install JZMQ error on CENTOS
  • Building jzmq on OS-X (Mountain Lion)
  • Using jZMQ binding with Java SDK 6 instead of 7
  • x64 ZeroMQ jzmq build process for Windows 7
  • 0MQ - JZMQ unsatisfied link error
  • jzmq seems to ignore HWM on XREP
  • Need a 64 bit binary for JZMQ, or bulding instructions for a non MSVC environment (cygwin/mingw)?
  • JZMQ failing to build debian package on Ubuntu
jzmq list of languages used
Other projects in Java