Servlet Tutorial

Generate a war file

How to generate a war file:

A war file is the compressed form of 'n' number of .class files, web.xml, *.html files and the jar files available in lib folder.

Syntax:

jar cfv (name of the war file) WEB-INF [*.html] [*.jsp]

Here, in cfv, 'c' represents create, 'f' represents file and 'v' represents verbose (used to compress)

Copy the war file from the current directory and paste it into applications folder of weblogic or webapps folder of Tomcat.