gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Crypto] RSAKeyPairGenerator exception


From: Casey Marshall
Subject: Re: [GNU Crypto] RSAKeyPairGenerator exception
Date: Fri, 25 Feb 2005 11:31:05 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

>>>>> "WU" == WU,I-HSUAN  <address@hidden> 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 || address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]