Re: Security Help

Sharon Liu (Sharon.Liu@eng.sun.com)
Wed, 4 Aug 1999 14:21:22 -0700 (PDT)

Message-Id: <199908042121.OAA09346@shorter.eng.sun.com>
Date: Wed, 4 Aug 1999 14:21:22 -0700 (PDT)
From: Sharon Liu <Sharon.Liu@eng.sun.com>
Subject: Re: Security Help
To: java-security@java.sun.com, ldayoub@montereynets.com

Liz,

> Sending PDUUnable to encode PDU.com.adventnet.snmp.snmp2.SnmpException:
> ASN1Parser:encrypt:Encryption Failed:java.lang.NoClassDefFoundError:
> Java/security/Cipher

There is no java.security.Cipher class. The Cipher class is
in the javax.crypto package.

Please make sure that you've installed JCE 1.2 correctly. The installation
instructions can be found at
http://java.sun.com/products/jce/jce12_install.html.

> class or interface declaration expected on
> Security.addProvider(new com.sun.crypto.provider.SunJCE());
>
> Do we need to have another statement present like an import or something?

Do you have "import java.security.Security" somewhere?

Thanks,
Sharon

> To: "'java-security@java.sun.com'" <java-security@java.sun.com>
> Subject: Security Help
> MIME-Version: 1.0
>
>
> To whom it may concern:
>
> We have the JCE installed and are trying to run AdventNet's snmpget
> application and getting the
> following error:
>
> Sending PDUUnable to encode PDU.com.adventnet.snmp.snmp2.SnmpException:
> ASN1Parser:encrypt:Encryption Failed:java.lang.NoClassDefFoundError:
> Java/security/Cipher
>
>
> Now, in your documentation on JCE, you state that the following line of code
> should placed at
> the beginning of the program:
>
> Security.addProvider(new com.sun.crypto.provider.SunJCE());
>
> So, adding that to the beginning of the snmpget program and trying to
> compile it we get the
> following error:
>
> class or interface declaration expected on
> Security.addProvider(new com.sun.crypto.provider.SunJCE());
>
> Do we need to have another statement present like an import or something?
>
> We would appreciate any information regarding this matter, as soon as
> possible.
>
> Thank you.
>
> Liza Dayoub, Jennifer Kemp and Chris Compton at Monterey Networks.
>
>
>
>