In this tutorial, we are going to see how to extract WAR files in Java.
We can extract the .war file using the Windows Command Prompt.
Here is the steps to extract the .war file using CMD:
1. Open cmd (command prompt).
2. Navigate to the directory where the .war file is present.
3. Then type the following command:
> jar -xvf file.war
4. Click on Enter.
Then go to the directory, check that you will get two folders namely WEBINF and METAINF.
Then create a new directory with the name of your project and place the WEBINF and METAINF folders in this directory.
MCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More