To compress a “michael” web application into a web archive file named michael.war. Follow these steps.
- J2SE installed, with jar in your environment path.
- Open the command prompt and cd to your directory that you want to archive.
- Use the Java Archive Command “jar” to bundle up the application
- After finishing, you will see a michael.war file in that directory.
jar -cvf michael.war *