Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Quickstart - unzip a WAR file

843841Mar 21 2005 — edited Dec 25 2007
While 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 22 2008
Added on Mar 21 2005
3 comments
433 views