简体   繁体   中英

Error: no jzmq in java.library.path

I installed zmq using homebrew and then installed jzmq from the github master.

I am getting this error:

java.lang.UnsatisfiedLinkError: no jzmq in java.library.path

I tried setting the path:

System.setProperty("java.library.path","/usr/local/lib")

These files are in /usr/local/lib

libzmq.a
libzmq.dylib
libzmq.la
libjzmq.a
libjzmq.dylib
libjzmq.la

I had the same problem on Linux (eclipse) , I solved it out by setting up the path of native library jzmq for my zmq.jar . By going into the project properties ( right click on project -> Properties... -> Java Build Path ), you can then add the JDIC.jar as a library on the library tab, expand it, and edit the Native Library Location property to point to the folder containing the native libraries: In my case it was /usr/local/lib .

So, basically, you could add -Djava.library.path as a VM argument in the launch configuration or set the native library as specified in http://www.eclipsezone.com/eclipse/forums/t49342.html

Have a good day.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM