This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
go to the folder in which you have files to include in .war. type-> jar -cvf pets.war * Which means, "compress everything in this directory into a file named pets.war" (c=create, v=verbose, f=file)
Or If u want only some files, specify file names separated with ,(comma) in place of '*'.
Sowjanya Chowdary
Ranch Hand
Joined: Aug 22, 2005
Posts: 35
posted
0
sorry i forgot to mention : you have to type "jar -cvf pets.war *" at command line.
suppose your deployment directory is "VoterApp" that is present in "d:\" then you go to that location from command prompt. After you type the below given....
d:\VoterApp>jar cf VoterApp.war .
here
c--->create war file
f---->specify the war file name
. --->dot represents the current directory.It tells us take everything of current directory and create war file of that aplication.
another precation is that you must give space between VoterApp.war and .(dot).
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32830
4
posted
0
Welcome to the Ranch
Are you sure he is still trying to make that war file?