Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2041014 | 1.4.0 | Scott Hommel | P3 | Resolved | Fixed | beta2 |
Name: rmT116609 Date: 02/26/2001
java version "1.3.0"
There appears to be a mistake in the jar tool documentation at
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html
The problem is in the EXAMPLES part, see excerpt below. In contradiction to the
documentation, the c option will not add files to an existing jar file, instead
it will overwrite the archive file. Adding of files to an archive is done via
the u option.
Excerpt from [http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html]
EXAMPLES
To add all the files in a particular directory to an archive
jar cvf bundle.jar *
...
If you already have subdirectories for images, audio files and classes
in your html directory, you might jar up each directory into a single
jar file
jar cvf bundle.jar audio classes images
(Review ID: 117612)
======================================================================
- backported by
-
JDK-2041014 Error in j2se1.3 Jar tool example documentation: option c example
-
- Resolved
-