Installation of ASN.1 kit
Status: Alpha
Brought to you by:
raif
Hi,
I downloaded the ASN.1 kit from the site.I downloaded
the other utilities also and copied the *.jar files
from this utilities to the /lib folder of cryptix.
What I am expecting from this utility is if I give a
mib file like "Mymodem-mib", it should generate all
the class files in Java.Am I right?
Also, I don't know how to use this utility and how to
give the source filename as well as the destination
directory?Can anybody help with me?
Also will it generate BER encoded files?
please let me know.
Please e-mail to gpjkumar@hotmail.com
Thanks,
Jay
Logged In: YES
user_id=204539
1. If your MIB contains correct ASN.1syntax, yes, this kit
should generate the corresponding Java files.
2. Have a look at the -D and -P arguments. Mainly, you have
to run java with the correct classpath for the cryptix-asn1 jars
and those options.
For instance:
java -classpath ... cryptix.asn1.tool.Main -D.. -
PMyModule=dir MyASN1.asn
3. It will not "generate" BER encoded files (we're invoking the
ASN.1 parser/generator !), but you can BER encode values
by calling the right methods in your code.
Hope this helps,
Axelle.