"jimage info|list" - Listing JIMAGE Entries

This section provides a tutorial example on how to use 'jimage info|list' commands to view JIMAGE file info and list IMAGE entries.

The first command to learn is the "jimage info" command, which prints a high level summary of the given JIMAGE file.

Here is what I did to run the "jimage info" command on the JIMAGE file of the default JRE of my JDK 10 installation:

herong> jimage info \progra~1\java\jdk-10.0.1\lib\modules

 Major Version:  1
 Minor Version:  0
 Flags:          0
 Resource Count: 51195
 Table Length:   51195
 Offsets Size:   204780
 Redirects Size: 204780
 Locations Size: 1073419
 Strings Size:   1122343
 Index Size:     2605350

The second command to learn is the "jimage list" command, which lists all entries in the given IMAGE file:

herong> jimage list --verbose \progra~1\java\jdk-10.0.1\lib\modules

jimage: \progra~1\java\jdk-10.0.1\lib\modules

Module: java.activation
  Offset   Size   Compressed Entry
40119347    292      0 META-INF/mailcap.default
40119639    581      0 META-INF/mimetypes.default
40120220   2323      0 com/sun/activation/registries/LineTokenizer.class
40122543   2111      0 com/sun/activation/registries/LogSupport.class
...
       0    452      0 module-info.class

Module: java.base
  Offset   Size   Compressed Entry
40224637     41      0 META-INF/services/java.nio.file.spi.FileSystemProvider
21674619   7298      0 com/sun/crypto/provider/AESCipher.class
21681917    327      0 com/sun/crypto/provider/AESConstants.class
21682244  14125      0 com/sun/crypto/provider/AESCrypt.class
...

Table of Contents

 About This Book

 Java Tools Terminology

 Java Tools Included in JDK

 javac - The Java Program Compiler

 java - The Java Program Launcher

 jar - The JAR File Tool

 jlink - The JRE Linker

 jmod - The JMOD File Tool

jimage - The JIMAGE File Tool

 JIMAGE - Java Image File Format

 jimage - JIMAGE File Tool Command

"jimage info|list" - Listing JIMAGE Entries

 "jimage extract" - Extracting JIMAGE File Entries

 Java File Types and Related Tools

 jpackage - Binary Package Builder

 javadoc - The Java Document Generator

 jdeps - The Java Class Dependency Analyzer

 jdeprscan - The Java Deprecated API Scanner

 jdb - The Java Debugger

 jcmd - The JVM Diagnostic Tool

 jconsole - Java Monitoring and Management Console

 jstat - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jhsdb - The Java HotSpot Debugger

 jvisualvm (Java VisualVM) - JVM Visual Tool

 jmc - Java Mission Control

 javap - The Java Class File Disassembler

 keytool - Public Key Certificate Tool

 jarsigner - JAR File Signer

 jshell - Java Language Shell

 jrunscript - Script Code Shell

 Miscellaneous Tools

 native2ascii - Native-to-ASCII Encoding Converter

 JAB (Java Access Bridge) for Windows

 Archived Tutorials

 References

 Full Version in PDF/EPUB