Pete Freitag Pete Freitag

Listing contents of a jar file with jar command

Published on March 08, 2006
By Pete Freitag

Need to list the contents of a jar file? You need to specify the options tf to the jar command, for example:

jar tf any.jar

If you use jar --help it may mislead you to think you need to specify a dash, or that you don't need the f flag.

Note you could also use this to list the contents of a zip file if you have java's jar command installed.


Listing contents of a jar file with jar command was first published on March 08, 2006.

Discuss / Follow me on Twitter ↯