Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
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.
✍: FYIcenter.com
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, ∼3526🔥, 0💬
Popular Posts:
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
Where to get the Java source code for Connector/J 8.0 Core API module? Java source code files for Co...
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
JDK 17 java.compiler.jmod is the JMOD file for JDK 17 Compiler module. JDK 17 Compiler module compil...