Hello

I'm working on a project like that. I have an applet using JSS to digital 
signing, too.
Ok However I dont have tested yet, that solution below apparently works.
But my problem is: how to install this dlls or shared objects in user 
machine tranparently? In other words: why this dlls dont come with Firefox? 
Why applet cannot load this libraries from a commom local like a folder 
inside Firefox folder or even CODEBASE folder? Is there a way to evict copy 
this files to user machine and download / load automatically?

Any help is welcome.

"Bruno Ribeiro" <[EMAIL PROTECTED]> escreveu na mensagem 
news:[EMAIL PROTECTED]
Hello everybody!

I added c:\jss\lib\ dir to PATH environment variable and it worked fine!

Thank all you very much!


CERTISIGNBruno de Paula Ribeiro
Analista de Desenvolvimento
(21) 4501 1816

Certisign Certificadora Digital
certisign.com.br
-----Mensagem original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de j.fabre
Enviada em: segunda-feira, 23 de abril de 2007 11:07
Para: Bruno Telstar
Cc: dev-tech-crypto@lists.mozilla.org
Assunto: Re: JSS + Windows: UnsatisfiedLinkError

Hi Bruno,

I put

freebl3.dll
jss4.dll
jss4.jar
libnspr4.dll
libplc4.dll
libplds4.dll
nss3.dll
nssckbi.dll
smime3.dll
softokn3.dll
ssl3.dll

inside "ROOT_UNIT":\WINDOWS\system32 directory and I had no problems.
Since I used JSS from an applet, JSS JAR file was in the classpath, I
added it from an applet using  archive="lib/jss4.jar" inside <applet>
tag in my test web page. If you´re not using an applet, you can recover
the "java.library.path" property´s value to find out the places in which
you can put this file.

I hope this could help you.
Regards.
Jesús el tuty.

Bruno Telstar escribió:
> Hello folks.
>
> I'm testing JSS to access Firefox certificate store, but I can't go beyond
> CryptoManager.initialize(). I have search the old posts in the forum,
> looking for something related, but I couldn't find it.
>
> My system is Windows XP, I'm running JDK 1.6, Eclipse and Firefox 2.0.0.3.
>
> I'm first trying to initialize JSS, with the following code:
>
> ================================
>
> String path = "C:\Documents and Settings\telstar\Application
> Data\Mozilla\Firefox\Profiles\rkl6t1ym.default";
>
> CryptoManager.InitializationValues vals = new
> CryptoManager.InitializationValues(path);
>
> CryptoManager.initialize(vals);
>
> ================================
>
> The last line of the above code is throwing the following exception:
>
> ================================
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no jss4 in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(Unknown Source)
> at java.lang.Runtime.loadLibrary0(Unknown Source)
> at java.lang.System.loadLibrary(Unknown Source)
> at
> org.mozilla.jss.CryptoManager.loadNativeLibraries(CryptoManager.java:1337)
> at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:825)
> at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:798)
> at org.mozilla.jss.tests.ListCerts.main(ListCerts.java:54)
>
> ================================
>
> I created a folder named "c:\jss\lib\" witch contains the following files:
>
> freebl3.dll
> jss4.dll
> jss4.jar
> libnspr4.dll
> libplc4.dll
> libplds4.dll
> nss3.dll
> nssckbi.dll
> smime3.dll
> softokn3.dll
> ssl3.dll
>
> I also added  c:\jss\lib\ jss4.jar to CLASSPATH variable, but the problem
> persists.
>
> Does anybody know what is happening? I probably must be doing something
very
> stupid, but I can't figure out.
>
> Thanks in advance!
>
> Bruno.
>
>
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto


_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to