[zeromq-dev] UnsatisfiedLinkError on 64bit linux

Daniel Friesen lists at nadir-seen-fire.com
Wed Apr 27 20:04:54 CEST 2011


The error seams to be to do with the use of Xbootclasspath in place of
classpath (which was necessary because there is a bug where just the
presence of openjdk being installed on the system causes the Rhino
js.jar to be overridden by an outdated version of it), I had to use
sun.boot.library.path instead of java.library.path.

On 11-04-26 12:40 AM, Daniel Friesen wrote:
> Sorry, that's just a mistake in my e-mail. I use a shell variable for
> the jar and lib paths, and I accidentally pasted the wrong path when I
> was substituting them for the e-mail.
> java.library.path is definitely /usr/local/lib, I checked from inside
> the shell. And the ZMQ classes are present so the jar is properly in the
> classpath.
>
> On 11-04-25 10:52 PM, Jon Rowland wrote:
>> Aren't you setting your java.library.path in your command-line to "/usr/local/share/java/zmq.jar"?
>>
>> -----Original Message-----
>> From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Daniel Friesen
>> Sent: 26 April 2011 05:10
>> To: zeromq-dev at lists.zeromq.org
>> Subject: [zeromq-dev] UnsatisfiedLinkError on 64bit linux
>>
>> I'm having an issue getting jzmq to work.
>>
>> - Running 64 bit ubuntu
>> - java.library.path is set to /usr/local/lib
>> - /usr/local/lib contains libjzmq.{a,la,so,so.0,so.0.0.0},
>> libzmq.{a,la,so,so.1,so.1.0.0}
>> - arch was properly detected when building jzmq: "checking build system
>> type... x86_64-unknown-linux-gnu"
>>
>> js> java.lang.System.loadLibrary('jzmq');
>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no jzmq in
>> java.library.path
>>     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
>>     at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>>     at java.lang.System.loadLibrary(System.java:1028)
>>
>> Run from: $JAVA
>> -Xbootclasspath/p:"lib/commons-cli-1.2/commons-cli-1.2.jar:lib/commons-collections-3.2.1/commons-collections-3.2.1.jar:/usr/local/lib:lib/mail.jar:lib/jline.jar:lib/mongo-rhino/mongo.jar:lib/js.jar"
>> -Djava.library.path="/usr/local/share/java/zmq.jar" -jar "lib/js.jar"
>> -version 180 "$@"
>>

-- 
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]




More information about the zeromq-dev mailing list