1 #
   2 # Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 error.multiple.main.operations=\
  27      You may not specify more than one '-cuxtid' options
  28 error.cant.open=\
  29      can''t open: {0}
  30 error.illegal.option=\
  31         Illegal option: {0}
  32 error.unrecognized.option=\
  33     unrecognized option : {0}
  34 error.missing.arg=\
  35      option {0} requires an argument
  36 error.bad.file.arg=\
  37      Error parsing file arguments
  38 error.bad.option=\
  39         One of options -{ctxuid} must be specified.
  40 error.bad.cflag=\
  41         'c' flag requires manifest or input files to be specified!
  42 error.bad.uflag=\
  43         'u' flag requires manifest, 'e' flag or input files to be specified!
  44 error.bad.eflag=\
  45         'e' flag and manifest with the 'Main-Class' attribute cannot be specified \n\
  46          together!
  47 error.bad.dflag=\
  48         '-d, --describe-module' option requires no input file(s) to be specified
  49 error.bad.reason=\
  50         bad reason: {0}, must be one of deprecated, deprecated-for-removal, or incubating
  51 error.nosuch.fileordir=\
  52         {0} : no such file or directory
  53 error.write.file=\
  54         Error in writing existing jar file
  55 error.create.dir=\
  56         {0} : could not create directory
  57 error.incorrect.length=\
  58         incorrect length while processing: {0}
  59 error.create.tempfile=\
  60         Could not create a temporary file
  61 error.hash.dep=\
  62         Hashing module {0} dependences, unable to find module {1} on module path
  63 error.module.options.without.info=\
  64         One of --module-version or --hash-modules without module-info.class
  65 error.no.operative.descriptor=\
  66         No operative descriptor for release: {0}
  67 error.no.root.descriptor=\
  68         No root module descriptor, specify --release
  69 error.unable.derive.automodule=\
  70         Unable to derive module descriptor for: {0}
  71 error.unexpected.module-info=\
  72         Unexpected module descriptor {0}
  73 error.module.descriptor.not.found=\
  74         Module descriptor not found
  75 error.invalid.versioned.module.attribute=\
  76         Invalid module descriptor attribute {0}
  77 error.missing.provider=\
  78         Service provider not found: {0}
  79 error.release.value.notnumber=\
  80         release {0} not valid
  81 error.release.value.toosmall=\
  82         release {0} not valid, must be >= 9
  83 error.release.unexpected.versioned.entry=\
  84         unexpected versioned entry {0} for release {1}
  85 error.validator.jarfile.exception=\
  86         can not validate {0}: {1}
  87 error.validator.jarfile.invalid=\
  88         invalid multi-release jar file {0} deleted
  89 error.validator.bad.entry.name=\
  90         entry name malformed, {0}
  91 error.validator.version.notnumber=\
  92         entry name: {0}, does not have a version number
  93 error.validator.entryname.tooshort=\
  94         entry name: {0}, too short, not a directory
  95 error.validator.isolated.nested.class=\
  96         entry: {0}, is an isolated nested class
  97 error.validator.new.public.class=\
  98         entry: {0}, contains a new public class not found in base entries
  99 error.validator.incompatible.class.version=\
 100         entry: {0}, has a class version incompatible with an earlier version
 101 error.validator.different.api=\
 102         entry: {0}, contains a class with different api from earlier version
 103 error.validator.names.mismatch=\
 104         entry: {0}, contains a class with internal name {1}, names do not match
 105 error.validator.info.name.notequal=\
 106         module-info.class in a versioned directory contains incorrect name
 107 error.validator.info.requires.transitive=\
 108         module-info.class in a versioned directory contains additional "requires transitive"
 109 error.validator.info.requires.added=\
 110         module-info.class in a versioned directory contains additional "requires"
 111 error.validator.info.requires.dropped=\
 112         module-info.class in a versioned directory contains missing "requires"
 113 error.validator.info.exports.notequal=\
 114         module-info.class in a versioned directory contains different "exports"
 115 error.validator.info.opens.notequal=\
 116         module-info.class in a versioned directory contains different "opens"
 117 error.validator.info.provides.notequal=\
 118         module-info.class in a versioned directory contains different "provides"
 119 error.validator.info.version.notequal=\
 120         {0}: module-info.class in a versioned directory contains different "version"
 121 error.validator.info.manclass.notequal=\
 122         {0}: module-info.class in a versioned directory contains different "main-class"
 123 warn.validator.identical.entry=\
 124         Warning: entry {0} contains a class that\n\
 125         is identical to an entry already in the jar
 126 warn.validator.resources.with.same.name=\
 127         Warning: entry {0}, multiple resources with same name
 128 warn.validator.concealed.public.class=\
 129         Warning: entry {0} is a public class\n\
 130         in a concealed package, placing this jar on the class path will result\n\
 131         in incompatible public interfaces
 132 warn.release.unexpected.versioned.entry=\
 133         unexpected versioned entry {0}
 134 warn.flag.is.deprecated=\
 135         Warning: The {0} option is deprecated, and is planned for removal in a future JDK release\n
 136 out.added.manifest=\
 137         added manifest
 138 out.added.module-info=\
 139         added module-info: {0}
 140 out.automodule=\
 141         No module descriptor found. Derived automatic module.
 142 out.update.manifest=\
 143         updated manifest
 144 out.update.module-info=\
 145         updated module-info: {0}
 146 out.ignore.entry=\
 147         ignoring entry {0}
 148 out.adding=\
 149         adding: {0}
 150 out.deflated=\
 151         (deflated {0}%)
 152 out.stored=\
 153         (stored 0%)
 154 out.create=\
 155         \ \ created: {0}
 156 out.extracted=\
 157         extracted: {0}
 158 out.inflated=\
 159         \ inflated: {0}
 160 out.size=\
 161         (in = {0}) (out= {1})
 162 
 163 usage.compat=\
 164 \Compatibility Interface:\
 165 \n\
 166 Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files] ...\n\
 167 Options:\n\
 168 \ \   -c  create new archive\n\
 169 \ \   -t  list table of contents for archive\n\
 170 \ \   -x  extract named (or all) files from archive\n\
 171 \ \   -u  update existing archive\n\
 172 \ \   -v  generate verbose output on standard output\n\
 173 \ \   -f  specify archive file name\n\
 174 \ \   -m  include manifest information from specified manifest file\n\
 175 \ \   -n  perform Pack200 normalization after creating a new archive,\n\
 176 \ \       this option is deprecated, and is planned for removal in a future JDK release\n\
 177 \ \   -e  specify application entry point for stand-alone application \n\
 178 \ \       bundled into an executable jar file\n\
 179 \ \   -0  store only; use no ZIP compression\n\
 180 \ \   -P  preserve leading '/' (absolute path) and ".." (parent directory) components from file names\n\
 181 \ \   -M  do not create a manifest file for the entries\n\
 182 \ \   -i  generate index information for the specified jar files\n\
 183 \ \   -C  change to the specified directory and include the following file\n\
 184 If any file is a directory then it is processed recursively.\n\
 185 The manifest file name, the archive file name and the entry point name are\n\
 186 specified in the same order as the 'm', 'f' and 'e' flags.\n\n\
 187 Example 1: to archive two class files into an archive called classes.jar: \n\
 188 \ \      jar cvf classes.jar Foo.class Bar.class \n\
 189 Example 2: use an existing manifest file 'mymanifest' and archive all the\n\
 190 \ \          files in the foo/ directory into 'classes.jar': \n\
 191 \ \      jar cvfm classes.jar mymanifest -C foo/ .\n
 192 
 193 main.usage.summary=\
 194 Usage: jar [OPTION...] [ [--release VERSION] [-C dir] files] ...
 195 main.usage.summary.try=\
 196 Try `jar --help' for more information.
 197 
 198 main.help.preopt=\
 199 Usage: jar [OPTION...] [ [--release VERSION] [-C dir] files] ...\n\
 200 jar creates an archive for classes and resources, and can manipulate or\n\
 201 restore individual classes or resources from an archive.\n\
 202 \n\
 203 \ Examples:\n\
 204 \ # Create an archive called classes.jar with two class files:\n\
 205 \ jar --create --file classes.jar Foo.class Bar.class\n\
 206 \ # Create an archive using an existing manifest, with all the files in foo/:\n\
 207 \ jar --create --file classes.jar --manifest mymanifest -C foo/ .\n\
 208 \ # Create a modular jar archive, where the module descriptor is located in\n\
 209 \ # classes/module-info.class:\n\
 210 \ jar --create --file foo.jar --main-class com.foo.Main --module-version 1.0\n\
 211 \     -C foo/ classes resources\n\
 212 \ # Update an existing non-modular jar to a modular jar:\n\
 213 \ jar --update --file foo.jar --main-class com.foo.Main --module-version 1.0\n\
 214 \     -C foo/ module-info.class\n\
 215 \ # Create a multi-release jar, placing some files in the META-INF/versions/9 directory:\n\
 216 \ jar --create --file mr.jar -C foo classes --release 9 -C foo9 classes\n\
 217 \n\
 218 To shorten or simplify the jar command, you can specify arguments in a separate\n\
 219 text file and pass it to the jar command with the at sign (@) as a prefix.\n\
 220 \n\
 221 \ Examples:\n\
 222 \ # Read additional options and list of class files from the file classes.list\n\
 223 \ jar --create --file my.jar @classes.list\
 224 \n
 225 main.help.opt.main=\
 226 \ Main operation mode:\n
 227 main.help.opt.main.create=\
 228 \  -c, --create               Create the archive
 229 main.help.opt.main.generate-index=\
 230 \  -i, --generate-index=FILE  Generate index information for the specified jar\n\
 231 \                             archives
 232 main.help.opt.main.list=\
 233 \  -t, --list                 List the table of contents for the archive
 234 main.help.opt.main.update=\
 235 \  -u, --update               Update an existing jar archive
 236 main.help.opt.main.extract=\
 237 \  -x, --extract              Extract named (or all) files from the archive
 238 main.help.opt.main.describe-module=\
 239 \  -d, --describe-module      Print the module descriptor, or automatic module name
 240 main.help.opt.any=\
 241 \ Operation modifiers valid in any mode:\n\
 242 \n\
 243 \  -C DIR                     Change to the specified directory and include the\n\
 244 \                             following file
 245 main.help.opt.any.file=\
 246 \  -f, --file=FILE            The archive file name. When omitted, either stdin or\n\
 247 \                             stdout is used based on the operation\n\
 248 \      --release VERSION      Places all following files in a versioned directory\n\
 249 \                             of the jar (i.e. META-INF/versions/VERSION/)
 250 main.help.opt.any.verbose=\
 251 \  -v, --verbose              Generate verbose output on standard output
 252 main.help.opt.create=\
 253 \ Operation modifiers valid only in create mode:\n
 254 main.help.opt.create.normalize=\
 255 \  -n, --normalize            Normalize information in the new jar archive\n\
 256 \                             after creation. This option is deprecated, and is\n\
 257 \                             planned for removal in a future JDK release
 258 main.help.opt.create.update=\
 259 \ Operation modifiers valid only in create and update mode:\n
 260 main.help.opt.create.update.main-class=\
 261 \  -e, --main-class=CLASSNAME The application entry point for stand-alone\n\
 262 \                             applications bundled into a modular, or executable,\n\
 263 \                             jar archive
 264 main.help.opt.create.update.manifest=\
 265 \  -m, --manifest=FILE        Include the manifest information from the given\n\
 266 \                             manifest file
 267 main.help.opt.create.update.no-manifest=\
 268 \  -M, --no-manifest          Do not create a manifest file for the entries
 269 main.help.opt.create.update.module-version=\
 270 \      --module-version=VERSION    The module version, when creating a modular\n\
 271 \                             jar, or updating a non-modular jar
 272 main.help.opt.create.update.hash-modules=\
 273 \      --hash-modules=PATTERN Compute and record the hashes of modules \n\
 274 \                             matched by the given pattern and that depend upon\n\
 275 \                             directly or indirectly on a modular jar being\n\
 276 \                             created or a non-modular jar being updated
 277 main.help.opt.create.update.module-path=\
 278 \  -p, --module-path          Location of module dependence for generating\n\
 279 \                             the hash
 280 main.help.opt.create.update.do-not-resolve-by-default=\
 281 \      --do-not-resolve-by-default  Exclude from the default root set of modules
 282 main.help.opt.create.update.warn-if-resolved=\
 283 \      --warn-if-resolved     Hint for a tool to issue a warning if the module\n\
 284 \                             is resolved. One of deprecated, deprecated-for-removal,\n\
 285 \                             or incubating
 286 main.help.opt.create.update.index=\
 287 \ Operation modifiers valid only in create, update, and generate-index mode:\n
 288 main.help.opt.create.update.index.no-compress=\
 289 \  -0, --no-compress          Store only; use no ZIP compression
 290 main.help.opt.other=\
 291 \ Other options:\n
 292 main.help.opt.other.help=\
 293 \  -?, -h, --help[:compat]    Give this, or optionally the compatibility, help
 294 main.help.opt.other.help-extra=\
 295 \      --help-extra           Give help on extra options
 296 main.help.opt.other.version=\
 297 \      --version              Print program version
 298 main.help.postopt=\
 299 \ An archive is a modular jar if a module descriptor, 'module-info.class', is\n\
 300 \ located in the root of the given directories, or the root of the jar archive\n\
 301 \ itself. The following operations are only valid when creating a modular jar,\n\
 302 \ or updating an existing non-modular jar: '--module-version',\n\
 303 \ '--hash-modules', and '--module-path'.\n\
 304 \n\
 305 \ Mandatory or optional arguments to long options are also mandatory or optional\n\
 306 \ for any corresponding short options.