dcsimg
Problem creating Key
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Antonio_Fonseca
Posted On:   Wednesday, May 5, 2004 09:03 AM

Hi I'm creating a class to encrypt/decrypt. After making reference do java.security and javax.crypto. I have a problem, when I try to create a Private key KeyGenerator keyGen = KeyGenerator.getInstance("DES"); give me this error java.lang.NoSuchMethodError: java.lang.Throwable: method initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; not found at javax.crypto.SunJCE_b. (DashoA6275) at javax.crypto.KeyGenerator.getInstance(DashoA6275) at Encrypt.criaKey(Encrypt.java:42) at Encrypt.main(Encrypt.java:18) Exception in thread "main" I know that the problem is that it can't instance the algorythm, I don´t know   More>>

Hi
I'm creating a class to encrypt/decrypt.
After making reference do java.security and javax.crypto.
I have a problem, when I try to create a Private key

			
KeyGenerator keyGen = KeyGenerator.getInstance("DES");


give me this error



java.lang.NoSuchMethodError: java.lang.Throwable: method initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; not found


at javax.crypto.SunJCE_b. (DashoA6275)
at javax.crypto.KeyGenerator.getInstance(DashoA6275)
at Encrypt.criaKey(Encrypt.java:42)
at Encrypt.main(Encrypt.java:18)
Exception in thread "main"



I know that the problem is that it can't instance the algorythm, I don´t know how to fiz the problem.

Any help will be a great help

Thanxs    <<Less
About | Sitemap | Contact