Seeing contents of war file without extracting

13,894

Solution 1

The t option to the command line jar program will list the contents of a jar (or war) file, e.g.:

$ jar tf the-file.war

Solution 2

A little late to the party, but you can use 7-zip or other similar software to view the contents of the .war

With 7-zip:
Right click on file.war -> Open archive

Share:
13,894
CuriousMind
Author by

CuriousMind

Updated on July 22, 2022

Comments

  • CuriousMind
    CuriousMind almost 2 years

    I created a simple web application and deployed in Tomcat using the admin console of Tomcat. Now, this war files gets stored in tomcat location under webapps directory.

    Is there a way to see the contents of this war without extracting? I know we can see the contents of war file by extracting using jar -xvf ; however is there any tool/mechanism by which to see the contents of war files without extracting it?

    Thanks for your time!

  • CuriousMind
    CuriousMind over 8 years
    Thanks for your inputs; is there any GUI tool in which we can "open" the war file just to see the contents?