Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4419119

Error in j2se1.3 Jar tool example documentation: option c example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0
    • docs
    • 1.3.1
    • generic
    • generic



        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)
        ======================================================================

              shommel Scott Hommel (Inactive)
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: