>>>>> "WU" == WU,I-HSUAN <[EMAIL PROTECTED]> writes:
WU> Hi. WU> I'm trying to creat a RSA Keypair of a public and private key. I WU> tried using the example from the bottom of the page of: WU> http://www.gnu.org/software/gnu-crypto/manual/api/gnu/crypto/key/package-summary.html WU> I compiled without any error using the binaries. WU> %javac -classpath .:/gnu-crypto.jar Test.java WU> But when I run it, I get the following exception: WU> Exception in thread "main" java.lang.NoClassDefFoundError: WU> gnu/crypto/key/rsa/RSAKeyPairGenerator WU> at Test.main(Test.java:14) WU> Can anyone help me with this? I have no idea what the problem WU> could be. Is there a better way to create RSA KeyPairs? Thanks!! How are you invoking 'java'? Is gnu-crypto.jar in your classpath when you run your program? You should be invoking java like this (if you really put gnu-crypto.jar into your root directory): java -cp .:/gnu-crypto.jar Test -- Casey Marshall || [EMAIL PROTECTED] _______________________________________________ gnu-crypto-discuss mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-crypto-discuss
