EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB38151: How to Build a War File from the Exploded Contents Using the Java Commands


Community Admin

• Strategy


How to Build a War File from the Exploded Contents Using the Java Commands

In some of the application servers users would have to rebuild the war file after making any changes to the files, like placing the new custom plugins under the plugins folder, and redeploy the war file.
 
In order to build a war file proper java commands have to be used as explained below.
 
The jar command can be used to build a war file and requires a Java Development Kit (JDK) to be installed on the machine. Make sure you specify the path to the JDK under the environment variables so that the jar command is recognized from any location.
 
Now users can go to the directory containing the exploded files from the command line for example D:\apache-tomcat-5.5.27\webapps\9.0.2 and give the follwing command so that all the contents under the 9.0.2 folder are archived into a war file
 

ka04W000000OgGtQAK_0EM4400000027OF.png

 

  • The
    c
    option indicates that you want to create a JAR file.
  • The v option produces verbose output on stderr (in version 1.1) or stdout (in version 1.2) while the JAR file is being built.
  • The
    f
    option indicates that you want the output to go to a file rather than to stdout.
  • The * is a wild card character that includes all the contents of the current directory into the war file.

 
Third Party Software Installation WARNING
 
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.


Comment

0 comments

Details

Knowledge Article

Published:

June 16, 2017

Last Updated:

June 16, 2017