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

Only authorized users are allowed to upload new attachments.
« This page (revision-39) was last changed on 16-Mar-2012 09:55 by 218.80.214.158