The rmi2idl compiler generates IDL from Java RMI.
rmi2idl [options] pacakage-qualified-class-name(s)
where options include:
-help print out this message
-J<vm flag> pass argument to the java interpreter
-ds <directory> root destination directory for generated IDL
-valueMethods generate methods for valuetypes
-classpath <path> specify where to find user class files
-verbose turn verbose mode on
The rmi2idl compiler generates IDL from Java classes. The classes named in the rmi2idl command must be classes that have been compiled successfully with the javac command and must be fully package qualified.
-help
Print the command line syntax and a short description of the compiler options.
-JruntimeFlag
Used to pass runtime flags to the Java interpreter/runtime. For example, in conjunction with the -D option, it sets a Java System property. Muliple -J arguments can be used to specify more than one runtime flags.
-classpath path
Specifies the classpath where rmi2idl looks for classes. It is not necessary to specify the JDK or the ORB classes here. The elements in the path must be separeted by platform specific path separator.
-ds directory
Specifies the root directory of the generated IDL source. The current directory is the default value for directory.
-valueMethods
By default, the methods and initializers for IDL valuetypes are not generated. This option specifies that these need to be added to the generated IDL.
-verbose
Put the rmi2iiop compile in verbose mode. It prints out the class files it is reading and the Java files it is generating.
Generate an IDL for the Hello World2 sample program
rmi2idl -verbose helloWorld.Hello
Copyright © 2003, 2004 Novell, Inc. All rights reserved. Copyright © 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.