WAR stands for Web Archive.
WAR-files are basically standard Java Archives (JAR), but with special structure, which make them suitable for distributing web applications, as per the servlet standard
.
Since JAR (and therefore, WAR), is compatible with the ZIP standard, you can
extract JARs and WARs using any archiver that can handle ZIP files. Typical
programs are 7-Zip
, WinZip
, InfoZip
or pkzip
. However, with Java JDK you get a special tool for handling JAR-files, which is called "jar". To extract a WAR-file, you
could simply say
jar xvf JSPWiki.war Note how the jar syntax is very close to the UNIX "tar" -syntax :-).
To create JAR files and WAR-files, the use of the "jar" tool is recommended. Otherwise some important files, such as the JAR manifest won't be included.
Add new attachment
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
war |
ajax-upload-1.0.war | 311.2 kB | 1 | 31-Jan-2012 08:44 | 112.196.10.251 | janaab |