The basic format of the command for creating a JAR file is: jar cf jar-file input-file(s) The options and arguments used in this command are:
The c and f options can appear in either order, but there must not be any space between them. Viewing the Contents of a JAR FileThe basic format of the command for viewing the contents of a JAR file is: jar tf jar-file Let's look at the options and argument used in this command:
The t and f options can appear in either order, but there must not be any space between them. Extracting the Contents of a JAR FileThe basic command to use for extracting the contents of a JAR file is: jar xf jar-file [archived-file(s)] Let's look at the options and arguments in this command:
As usual, the order in which the x and f options appear in the command doesn't matter, but there must not be a space between them. Updating a JAR FileThe Jar tool provides a u option that you can use to update the contents of an existing JAR file by modifying its manifest or by adding files. jar uf jar-file input-file(s) In this command:
Any files already in the archive having the same pathname as a file being added will be overwritten.
|
|||||||||||||
Disclaimer
1) E-articles is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringement, please read the terms of service and contact us or use the "Report this article" button on this page to investigate the problem.
2) E-articles is not responsible for inaccuracies, falsehoods, or any other types of misinformation this article may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. |
|||||||||||||