Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8173970 jar tool should have a way to extract to a directory
  3. JDK-8342648

Release Note: New Option to Extract a JAR File to a Specific Directory Using the jar Tool

XMLWordPrintable

    • jar

      The `jar` tool's extract operation has been enhanced to allow the `--dir` or the `-C` options to be used to specify the directory where the archive will be extracted.

      *Example Usages:*

      `jar -xf foo.jar -C /tmp/bar/`

      or

      `jar --extract --file foo.jar --dir /tmp/bar/`


      Either of these commands will extract the `foo.jar` to the `/tmp/bar` directory.

      For more details, see the [jar command](https://docs-uat.us.oracle.com/en/java/javase/24/docs/specs/man/jar.html) man page.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: