Java Reference
In-Depth Information
Figure 9-4. Running rmic on the remote object DvdDatabaseImpl
If you would like more detailed information than what is shown in Figure 9-4, run rmic
with the -verbose flag. The -help option will display all of the other options that are available.
The file displayed in the remote directory, DvdDatabaseImpl_Stub.class , is the result of the
rmic command.
Packaging the Application
You are ready to create your JAR file. The jar command allows you to create archives of files of
various types into a single compressed file based on the zip format. To run the jar command,
make sure you comply with the following syntax:
jar [options] [manifest] destination input-file [input-files]
To create your JAR file, use the c , v , f , and m options, which are described in Table 9-2. You
will also need to specify the location of your manifest file, which is in the dennysDVDs2.0 root
directory.
Table 9-2. jar Tool Options Used to Create sampleproject.jar
Option
Description
c
C reates a new archive; unless the f parameter is provided, the archive will be created
on standard output.
v
Generates v erbose output.
f
Indicates that the name of the JAR f ile to be created (not on stdout) will be specified
as the next argument in order.
m
Includes a m anifest file that will be specified as the next argument in order. The jar
tool will read the contents of the file you specified and store them in the file named
MANIFEST.MF in the META.INF directory.
Search WWH ::




Custom Search