jdk.zipfs/jdk.nio.zipfs.ZipInfo - ZipInfo Tool

Q

How to run "jdk.zipfs/jdk.nio.zipfs.ZipInfo" tool from JDK lib\modules JImage file?

✍: FYIcenter

A

"jdk.zipfs/jdk.nio.zipfs.ZipInfo" tool allows you to print out detailed information of a given ZIP file.

"jdk.zipfs/jdk.nio.zipfs.ZipInfo" tool is supported by the jmods\jdk.zipfs.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

You can run the "jdk.zipfs/jdk.nio.zipfs.ZipInfo" tool using the lib\modules JImage file as described below using JDK 11 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1

C:\fyicenter>%JDK_HOME%\bin\java --module jdk.zipfs/jdk.nio.zipfs.ZipInfo %JDK_HOME%\lib\src.zip 

----------------#1--------------------
[Central Directory Header]
    Signature   :   0x02014b50
    VerMadeby   :        0x31e    [3, 3.0]
    VerExtract  :         0x14    [2.0]
    Flag        :          0x0
    Method      :          0x8
    LastMTime   :   0x4d4629ca    [Sat Oct 06 05:14:20 PDT 2018]
    CRC         :   0xaacda510
    CSize       :       0x3d6c
    Size        :      0x1b68b
    NameLen     :         0x28    [java.base/java/lang/CharacterData00.java]
    ExtraLen    :         0x18
        [tag=0x5455, sz=5, data= 03 1b a7 b8 5b ]
         ->Info-ZIP Extended Timestamp: flag=3
            *Sat Oct 06 05:14:19 PDT 2018
        [tag=0x7875, sz=11, data= 01 04 eb 03 03 00 04 01 02 03 00 ]
         ->[tag=7875, size=11]
    CommentLen  :          0x0
    DiskStart   :          0x0
    Attrs       :          0x1
    AttrsEx     :   0x81fd0000
    LocOff      :          0x0

[Local File Header]
    Signature   :   0x04034b50
    Version     :         0x14    [2.0]
    Flag        :          0x0
    Method      :          0x8
...

 

Download and Use JDK 11

jdk.security.auth/com.sun.security.auth.module.Crypt - Crypt Tool

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-08-08, 235👍, 0💬