• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hot to create a war file.

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can anybody tell me how to make a war file of an application.
This is the directory structure of the Application.

aaa
|_____
|
META-INF
WEB-INF
index.jsp
search.jsp
result.jsp
 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use the 'jar' utility. Just give the file a .war extension. A war file has the same format as a jar file, the extensions are different because they're usually used for different things.
[ May 19, 2006: Message edited by: Ryan McGuire ]
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to skip some work... use a zip utility. Create a zip file and then change the extension.
Maybe this will save you some work. As a beginner it will suffice.
For a more professional work learn ant. Also the majority of IDE's have a jar/war/ear/rar utility. JAR in command line is nice but not necessary to learn in the hard way.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Padmaratna,

You can use command 'jar', comes bundled with j2sdk.

aaa> jar cvf aaa.war *

where aaa - is the name of the folder you have in your hierarchy.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic