Building the Java Web Archive (WAR)

To build a Java™ Web archive, use the Java jar tool.

Execute following command in the $FGLASDIR/war/WebContent directory:

$ jar cvf java-j2eedispatch.war .

This will create the Java Web Archive, ready to be deployed on any Java web server.

Note:
  1. The name of the archive must match the servlet name set in the deployment file.
  2. Instead of jar, you can use zip, gzip or winzip.