just type this commmand in command prompt, the command is like this

c:\dir>jar -cfv filename .
then u will be getting filename.war file, it will compress all the files and folders in a single file, i.e. filename.war