Java war file
In this section we will discuss about Java WAR file that is basically used for web applications like Servlet, JSP or Struts based application. JAR and EAR will discuss in further sections.
WAR File
In java there are three compress format for java application are following below.
- JAR β Standalone Applications
- WAR β Web Applications
- EAR β Enterprise Applications
What is war file?
WAR is the abbreviated form of Web Archive. Itβs just a compress format for web application (Like ZIP) that having servlets, JSP and static resource like images, HTML, CSS etc. You can simply deploy the war file to the Web server Or application server like Tomcat, WebLogic, Jboss or glass fish and access it via bowser.
jar.exe tool
Jar.exe tool are used to create WAR file. Jar.exe comes under the java development kit so no need to download anything to create executable jar.

Some Important point about Java WAR files.
- Single war file is treated as one web application.
- The extension of war file is dot war (.war). For example hello.war