Florian Bernstein wrote:
Wan-Teh Chang wrote:
Florian Bernstein wrote:
Wan-Teh Chang wrote:
Florian Bernstein wrote:
Hello,
everytime I tried to build a java application using the jss34.jar,
I get following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jss3
in java.library.path
Can anyone help me get it working?
I believe the "jss3" in the exception message is referring to
libjss3.so. JSS contains native code. So you need libjss3.so,
NSS (libnss3.so, etc.), and NSPR (libnspr4.so), and the directory
these .so's are in needs to be added to your LD_LIBRARY_PATH
environment variable.
Wan-Teh
That's what I have already done, downlaoding all the lib files and
addign the pathes to the LD_LIBRARY_PATH. But it seems as if linux
doesn't recognize the libs. I checked the pathes twice, and they're
spelled right.
Any other solutions?
Please post the value of your LD_LIBRARY_PATH here.
On Linux, you need the following files:
libjss3.so
libnss3.so
libsoftokn3.so
libsoftokn3.chk
libsmime3.so
libssl3.so
libnspr4.so
libplc4.so
libplds4.so
The *directories* they are installed in need to be in
your LD_LIBRARY_PATH environment variable for the JRE.
Other than this, I can't think of any other possible
cause of the problem.
Wan-Teh
Hi
Here is the value of my LD_LIBRARY_PATH:
/home/flo/BA/jss-3.4.1/lib:/home/flo/BA/nspr-4.4.1/lib:/home/flo/BA/nss-3.9.2/lib
This looks good.
If you use bash, after you set LD_LIBRARY_PATH to this value,
did you also say
export LD_LIBRARY_PATH
I got all the files you mentioned except libsoftokn3.chk, I can't find
this file in the nss-3.9.2 directory.
libsoftokn3.chk is needed only if you want to run NSS/JSS in
FIPS mode. It has nothing to do with the problem at hand.
I was just mentioning it for completeness.
I'm not very used to Linux, but could it be possible, that the JRE
checks an other variable instead of LD_LIBRARY_PATH ?
"export LD_LIBRARY_PATH" is the only thing I can think of.
I don't think the JRE checks any other variable, but I could
be wrong. (I'm not a Java expert.)
Wan-Teh
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto