Security Help

Liza Dayoub (ldayoub@montereynets.com)
Wed, 4 Aug 1999 16:03:16 -0500

From: Liza Dayoub <ldayoub@montereynets.com>
To: "'java-security@java.sun.com'" <java-security@java.sun.com>
Subject: Security Help
Date: Wed, 4 Aug 1999 16:03:16 -0500

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.