Question - How to create war file?
Answer -
The war file can be created using jar tool found in jdk/bin directory. If you are using Eclipse or Netbeans IDE, you can export your project as a war file.
To create war file from console, you can write following code.
jar -cvf abc.war *
Now all the files of current directory will be converted into abc.war file.