This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Creating native binaries using GNU-Crypto
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.