Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Regarding WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Regarding WAR file" Watch "Regarding WAR file" New topic
Author

Regarding WAR file

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
When I am creating war file for a web application,jar file with .war extension should be created out of the say "BeerApp"or we have to create a jar file with .war extension of all the files under the the "BeerApp" and give the war name BeerApp.war?HFSJ and study kit explains these differently
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
Create .war using jar tool as shown below
c:\tomatcat\webapps\BeerApp> jar -cvf BeerAppWar.war *.*
Above command creates BeerAppWar.war file of all contents present inside c:\tomatcat\webapps\BeerApp folder.
Copy war file inside tomcat\webapps folder.
Now application name is BeerAppWar.
 
 
subject: Regarding WAR file
 
Similar Threads
servlets
What is a .war file?
how to make a war file
Request for JSP Samples
WAR file