Quickstart - unzip a WAR file
843841Mar 21 2005 — edited Dec 25 2007While following the Quickstart instructions for deploying an application, the instructions were as follows:
" ... create a new directory, build/. Unzip the contents of the hello.war file into it."
I struggled to find out how to unzip a .war file, so i'm posting an entry here.
The "jar" command can be used to unzip a .war file. To do so in Windows,
1. Add "<install-dir>\jdk\bin" to the PATH. i.e. Go to Environment variables and edit system PATH variable to include "c:\Sun\AppServer\jdk\bin"
2. Use the command, "jar xvf <filename>.war" to unzip the file in the current directory
I hope this helps someone else.