File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes how to make a .war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to make a .war file" Watch "how to make a .war file" New topic

how to make a .war file

mazoun yusuf

Joined: Feb 11, 2005
Posts: 19
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?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

cd to the root directory of your app and type:
jar -cvf YOUR_APP_NAME.war *
[ February 14, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
u should this -::

jar -cvf name_to_be_made.war .
please pay attension on the whole syntax
I agree. Here's the link:
subject: how to make a .war file
It's not a secret anymore!