Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.
Trevor Bernard edited this page Apr 21, 2014 · 5 revisions

I'm receiving an UnsatisfiedLinkError no jzmq in java.library.path, please help?

The JVM throws an UnsatisfiedLinkError when it can't find the jzmq native definition. If you haven't already installed the latest libzmq, please do so. If the problem persists, you can set thejava.library.path system variable to point where the shared library is installed. Typically you'd want an entry like the following in your application's project.clj:

:jvm-opts ["-Djava.library.path=/usr/lib:/usr/local/lib"] 

Does this work with jeromq?

It absolutely does, jzmq and jeromq share the same API and aim to be a drop in replacement for one another. All you need to do is exclude jzmq from cljzmq and add jeromq as a dependency like so:

  :dependencies [[org.clojure/clojure "1.5.1"]
                 [org.zeromq/jeromq "0.3.3"]
                 [org.zeromq/cljzmq "0.1.4" :exclusions [org.zeromq/jzmq]]]}
Clone this wiki locally