What is a WAR file and how do I create one?

Alex Chaffee

A WAR (or "web archive") file is simply a packaged webapp directory. It is created using the standard Java jar tool. For example:

cd /home/alex/webapps/mywebapp 
jar cf ../mywebapp.war * 

See also What is a web application (or "webapp")?

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.