You must include the PACKAGE element in your MOF file to take advantage of the -j option. In addition, you can specify the IMPORTS and EXCEPTIONS elements, in the following format:
PACKAGE=NameOfJavaPackage IMPORTS=JavaClassName1:JavaClassName2:... EXCEPTIONS=Exception1:Exception2:...
Th following table describes these elements.
Table 2-1 MOF File Elements
Element |
Description |
---|---|
PACKAGE |
Required. Specifies the name of the Java package that contains the source files generated by the MOF Compiler. |
IMPORTS |
Optional. Specifies the name(s) of the Java classes to import into the generated source files, separated with a colon (:). You can specify as many Java classes as you want, on as many lines as you want. |
EXCEPTIONS |
Optional. Specifies the name(s) of the Java exceptions included in the generated source files, separated with a colon (:). You can specify as many Java class exceptions as you want, on as many lines as you want. Note - If you specify EXCEPTIONS, you must specify IMPORTS. |