• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make war file  RSS feed

 
jawwad ahmed
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have
c:\tomcat2\webapps\examples\web-inf\classes\mypackage\classfile.
How i will make war file of this.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming this directory: c:\tomcat2\webapps\examples\ includes ALL the makings of a war file (Deployment desciptor, web.xml; any servlets/jsps/taglibs etc) You simply use the jar utitlity to turn it into a war file
from the command line CD into the \exampled directory and call:
jar cvf examples.war *
That will take everything in its path and place it in the war file named examples.war
------------------
- Jessica Bradley
HP Bluestone
 
v velus
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
zip the file and rename to war extension and deploy it thats all.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!