Add % JACORB_HOME %/bin to the environment variable path
First, use jacorb to compile the idl file as a java source and use idl. bat
Open the bat file with the following content:
@ Echo off <br/> java-Djava. endorsed. dirs = "D:/jacorb/lib"-classpath "D:/jacorb/lib/idl. jar; D:/jacorb/lib/logkit-1.2.jar; % CLASSPATH % "org. jacorb. idl. parser % * <br/>
Set the content as needed.
Add bin to the environment variable path. idl-help can see the compilation syntax (the dir part in the syntax indicates the path rather than the command itself ):
C: /users/GSS> IDL-H <br/>-H | help these few lines of help <br/>-v | version print version information <br/>-D dir Root of directory tree for output <br/>-DX define Preprocessor symbol X with value 1 <br/>-dx = y define Preprocessor symbol X with value Y <br/>-Idir set include path for IDL files <br/>-u <symbol> undefine Preprocessor symbol <br/>-W [1 .. 4] debug level <br/>-all generate code for all IDL files, even included ones <br/>-forceoverwrite generate code even if IDL has not changed <br/>-ami_callback generate AMI reply handlers and sendc methods <br/>-ami_polling generate AMI poller and sendp methods <br/>-backend classname use classname as code generator <br/>-i2jpackage X: a. b. C replace IDL package name X by. b. c In generate <br/> D Java code (e.g. CORBA: Org. OMG. CORBA) <br/>-i2jpackagefile <FILENAME> replace IDL package names using list fr <br/> OM <FILENAME>. format as abve. <br/>-IR generate information required by the interface repositor <br/> Y <br/>-nofinal generated Java code will contain no final class definiti <br/> ons <br />-unchecked_narrow use unchecked_narrow in generated code F <br/> or ior parameters in Operations <br/>-noskel disables generation of Poa skeletons <br/>-nostub disables generation of client stubs <br/>-cldc10 code generation compatible with J2EE/cldc 1.0 <br/>-sloppy_forward allow forward declarations wo. later definitions <br/>-sloppy_names less strict checking of Module name scoping <br/>-permissive_rmic tolerate dubious IDL generated by JDK's rmic, in <br/> cludes-sloppy_names. <br/>-Syntax check only, no code generation <br/> <filelist>
Common simple commands:
The role of each command has been explained in the help above.
Note: The I command is followed by the included directory.
Second, use jacorb to parse the ior information and use dior. bat
You can enter an ior string or a file. The file content is like:
IOR: Rule
Run the following command to obtain the parsed idl information: