List Entries "jar -t" Command Syntax
What are syntax rules of the "jar -t" command for listing entries from a JAR file? I am confused on how to specify different options, like v and f.
The "jar -t" command allows you to display entries from an existing JAR file. It has the follow syntax:
jar -t[vf] [jar-file] [pattern]
"v" option flag returns verbose output for each entry. If "v" is not specified, only the entry path names are returned.
"f" option flag specifies the JAR file. If "f" is specified, "jar-file" must be provided. If "f" is not specified, the JAR file is read from the standard input.
If "pattern" specified, only those entries that match the pattern will be included in the output. If not specified, all entries in the JAR will be displayed.
Here are some example of valid "jar -t" commands
jar -tf activation.jar Display all entries in the JAR jar -tf activation.jar com/sun/activation/viewers/Image Display all entries that matches the given pattern jar -tvf activation.jar Display all entries with timestamp and size type activation.jar | jar -tv Read the JAR file from the standard input
Back to FAQ for JDK JAR (Java ARchive) Tool.
2016-05-28, 1573👍, 0💬
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
How to download and install ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is a Java 8 J...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
What Is mail.jar of JavaMail 1.2? I got the JAR file from javamail-1_2.zip. mail.jar in javamail-1_2...