Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make a .war file

 
mazoun yusuf
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to deploy a servlet in tomcat 5.0. i need to add my classes top a .war file. How can i do so?

mazoun
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cd to the root directory of your app and type:
jar -cvf YOUR_APP_NAME.war *
[ February 14, 2005: Message edited by: Ben Souther ]
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u should this -::

jar -cvf name_to_be_made.war .
please pay attension on the whole syntax
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic