Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make war file in Eclipse [duplicate]

People also ask

Where is the war file generated in eclipse?

right click in project > export > web project > . war Then copy the . war file into webapp directory of your apache tomcat.

How do I compile a WAR file?

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.

Can we import WAR file in Eclipse?

Select File > Import . In the Import dialog, select WAR file and then click Next. Locate the WAR file that you want to import using the Browse button. The wizard assumes you want to create a new Web project with the same name as the WAR file.


File -> Export -> Web -> WAR file

OR in Kepler follow as shown below :

enter image description here