Creating native binaries using GNU-Crypto
Andrew Haley
aph@redhat.com
Wed Dec 10 16:10:00 GMT 2003
Stefan Prelle writes:
> Hi,
>
> I'm trying to build a native executable that uses the GNU-Crypto JCE
> implementation. I can link against the libraries that were installed by
> GNU-Crypto but when I execute the program it fails to load the providers
> class.
>
> The code is roughly like this:
>
> Provider prov = (Provider)Class.forName("gnu.crypto.jce.GnuCrypto");
> Security.addProvider(prov);
>
> On execution Class.forName fails although the class exists in the shared
> library and the corresponding jar-file.
This should work. You need to say much more precisely what you did,
with examples. We also need to know what system you were using.
Andrew.
More information about the Java
mailing list