How do I view the contents of a war file using the jar command?
Author: Deron Eriksson
Description: This tutorial describes how to view the contents of a web archive (war) file using the jar command.
Tutorial created using: Windows XP || JDK 1.5.0_09
Viewing the contents of a warW file can be performed using the 'jar tvf' command, as shown below:
jar tvf web-archive-test.war
If I run this command on the web-archive-test.war file from a command prompt, I receive the following expected results: