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:...
The following table describes these elements.
Table 7–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 names of the Java classes to import into the generated source files. These classes are 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 names of the Java exceptions that are included in the generated source files. These exceptions are 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. |