How to create a war file.

From MyWiki
Jump to: navigation, search

To create war file, you need to use jar tool of JDK. You need to use -c switch of jar, to create the war file. Go inside the project directory of your project (outside the WEB-INF), then write the following command:

jar -cvf projectname.war *