Tuesday 19 February 2013

How to create war file through command line

For create war file first we need to create web application. 
  1. For that create a hello folder in D:\ drive. 
  2.  In hello folder create WEB-INF folder and create either index.html file or index.jsp file beside WEB-INF folder.
  3. Inside WEB-INF folder create classes folder, lib folder and create web.xml file also.
Now the web application is ready to create war file. Now you can check structure of hello application.


 

In next step for create war file in command line type D:\hello>jar -cvf hello.war *

  

now you can check structure of hello application in hello folder hello.war file is created.

No comments:

Post a Comment