SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-40
jar Tool Command Line
jar Tool Command Line
The jar tool combines multiple files into a single Java Archive (JAR) file. For more
information about this tool, see the NonStop Server for Java Tools Reference Pages.
Command-Line Syntax
To invoke the jar tool, enter this command at an OSS prompt:
jar
is the jar tool.
options
are jar option settings, which must be separated by spaces. For information, see
the NonStop Server for Java Tools Reference Pages.
manifest-file
is the name of a preexisting manifest file to be used for the new JAR file.
destination-jar-file
is the name of the JAR file to create.
input-file [input-file]...
are the class files (.class) and profiles (.ser) of an SQLJ application to be
included in the JAR file. Each file must be separated by a space. The jar tool
searches for these files in the current directory.
Example—jar
This command combines all the class files (.class) and profiles (.ser) in the current
directory into one JAR file named MyApp.jar:
jar cmf myManifest MyApp.jar *.class *.ser
It also includes manifest information from a manifest file that you created.
For more information, see Packaging the Program in a JAR File on page 6-5.
jar [options] [manifest-file] destination-jar-file
input-file [input-file]...