A WAR (or “web archive”) file is simply a packaged webapp directory. In other words it is a kind of zip file or tar file. War files are type of jar file. It is used to deploy servlets. Today we will see How create and extract war files
To extract war file you can simply use jar xvf filename
jar xvf test.war
How to create war files?
It is created using the standard Java jar tool. For example:
jar cf ../mywebapp.war *