pTutorial

New way to learn Programming

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.

Java tool

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


QUOTES OF THE DAY

A single death is tragedy, a million death is a static.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER