< prev index next >

src/jdk.jartool/share/man/jar.1

Print this page




   4 .\" This code is free software; you can redistribute it and/or modify it
   5 .\" under the terms of the GNU General Public License version 2 only, as
   6 .\" published by the Free Software Foundation.
   7 .\"
   8 .\" This code is distributed in the hope that it will be useful, but WITHOUT
   9 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  11 .\" version 2 for more details (a copy is included in the LICENSE file that
  12 .\" accompanied this code).
  13 .\"
  14 .\" You should have received a copy of the GNU General Public License version
  15 .\" 2 along with this work; if not, write to the Free Software Foundation,
  16 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 .\"
  18 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 .\" or visit www.oracle.com if you need additional information or have any
  20 .\" questions.
  21 .\"
  22 .\" Automatically generated by Pandoc 2.3.1
  23 .\"
  24 .TH "JAR" "1" "2018" "JDK 13" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 jar \- create an archive for classes and resources, and manipulate or
  29 restore individual classes or resources from an archive
  30 .SH SYNOPSIS
  31 .PP
  32 \f[CB]jar\f[R] [\f[I]OPTION\f[R] ...] [ [\f[CB]\-\-release\f[R]
  33 \f[I]VERSION\f[R]] [\f[CB]\-C\f[R] \f[I]dir\f[R]] \f[I]files\f[R]] ...
  34 .SH DESCRIPTION
  35 .PP
  36 The \f[CB]jar\f[R] command is a general\-purpose archiving and compression
  37 tool, based on the ZIP and ZLIB compression formats.
  38 Initially, the \f[CB]jar\f[R] command was designed to package Java applets
  39 (not supported since JDK 11) or applications; however, beginning with
  40 JDK 9, users can use the \f[CB]jar\f[R] command to create modular JARs.
  41 For transportation and deployment, it\[aq]s usually more convenient to
  42 package modules as modular JARs.
  43 .PP
  44 The syntax for the \f[CB]jar\f[R] command resembles the syntax for the




   4 .\" This code is free software; you can redistribute it and/or modify it
   5 .\" under the terms of the GNU General Public License version 2 only, as
   6 .\" published by the Free Software Foundation.
   7 .\"
   8 .\" This code is distributed in the hope that it will be useful, but WITHOUT
   9 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11 .\" version 2 for more details (a copy is included in the LICENSE file that
  12 .\" accompanied this code).
  13 .\"
  14 .\" You should have received a copy of the GNU General Public License version
  15 .\" 2 along with this work; if not, write to the Free Software Foundation,
  16 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 .\"
  18 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 .\" or visit www.oracle.com if you need additional information or have any
  20 .\" questions.
  21 .\"
  22 .\" Automatically generated by Pandoc 2.3.1
  23 .\"
  24 .TH "JAR" "1" "2020" "JDK 14" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 jar \- create an archive for classes and resources, and manipulate or
  29 restore individual classes or resources from an archive
  30 .SH SYNOPSIS
  31 .PP
  32 \f[CB]jar\f[R] [\f[I]OPTION\f[R] ...] [ [\f[CB]\-\-release\f[R]
  33 \f[I]VERSION\f[R]] [\f[CB]\-C\f[R] \f[I]dir\f[R]] \f[I]files\f[R]] ...
  34 .SH DESCRIPTION
  35 .PP
  36 The \f[CB]jar\f[R] command is a general\-purpose archiving and compression
  37 tool, based on the ZIP and ZLIB compression formats.
  38 Initially, the \f[CB]jar\f[R] command was designed to package Java applets
  39 (not supported since JDK 11) or applications; however, beginning with
  40 JDK 9, users can use the \f[CB]jar\f[R] command to create modular JARs.
  41 For transportation and deployment, it\[aq]s usually more convenient to
  42 package modules as modular JARs.
  43 .PP
  44 The syntax for the \f[CB]jar\f[R] command resembles the syntax for the


< prev index next >