[zeromq-dev] Error: java.lang.UnsatisfiedLinkError
Sharon Ben-Asher
Sharon.Ben-Asher at avg.com
Wed Jul 11 12:32:49 CEST 2012
Hello again,
I am now trying to build the server side (finished the build of the client on Android, thanks)
I am testing my Java binding on RedHat i686.
My command is as follows
java -Djava.library.path=/root/zeromq-3.2.0/output/lib -classpath .:/root/zeromq-3.2.0/output/share/java:./local_lat Test
Getting the following error:
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZContext.createSocket(ZContext.java:89)
at Test$Client.run(Test.java:79)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZContext.createSocket(ZContext.java:89)
at Test$Worker.run(Test.java:59)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: /root/zeromq-3.2.0/output/lib/libjzmq.so.0.0.0: libzmq.so.3: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at org.zeromq.ZMQ.<clinit>(ZMQ.java:34)
at org.zeromq.ZContext.createSocket(ZContext.java:89)
at Test$Broker.run(Test.java:19)
at java.lang.Thread.run(Thread.java:662)
so I am guessing libjzmq.so.0.0.0 can't find libzmq.so.3 ?
however the file is present at /usr/local/lib and I did ldconfig
thanks,
Sharon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120711/16e41399/attachment.htm>
More information about the zeromq-dev
mailing list