idltojava compiles IDL files to Java source code. For more information about the IDL to Java mapping, see Java to IDL Language Mapping Specification.
idltojava [ options ] filename ...
The idltojava command compiles IDL source code into Java source code. You then use the javac compiler to compile that source to Java bytecodes.
The IDL declarations from the named IDL files are translated to Java declarations according to the mapping from IDL to Java.
- -j javaDirectory
- Specifies that generated Java files should be written to the given directory. This directory is independent of the -p option, if any.
- -Idirectory
- Specifies a directory to be searched for files that are #included in IDL files. This option is passed to the preprocessor.
- -Dsymbol
- Specifies a symbol to be defined during preprocessing of the IDL files. This option is passed to the preprocessor.
- -Usymbol
- Specifies a symbol to be undefined during preprocessing of the IDL files. This option is passed to the preprocessor.
The following options can be turned on by specifying them as shown, and they can be turned off by prefixing them with the letters `no-'. E.g. to prevent the C preprocessor from being run on the input IDL files, use -fno-cpp.
- -flist-flags
- Requests that the state of all the -f flags be printed. The default value of this flag is `off'.
- -fclient
- Requests the generation of the client side of the IDL files supplied. The default value of this flag is `off'.
- -fserver
- Requests the generation of the server side of the IDL files supplied. The default value of this flag is `off'.
- -fverbose
- Requests that the compiler comment on the progress of the compilation. The default value of this flag is `off'.
- -fversion
- Requests that the compiler print its version and timestamp. The default value of this flag is `off'.
- RepositoryPrefix="prefix"
- A default repository prefix can also be requested with the line
#pragma prefix "requested prefix"at the top-level in the IDL file itself.
#pragma javaPackage "package"wraps the default package in one called package. For example, compiling an IDL module M normally creates a Java package M. If the module declaration is preceded by
#pragma javaPackage "browser"the compiler will create the package M inside package browser. This pragma is useful when the definitions in one IDL module will be used in multiple products.
Copyright © 1996,1997 Sun Microsystems, Inc., 2550 Garcia Ave., Mtn. View, CA. 94043-1100 USA., All rights reserved.