right click in project > export > web project > . war Then copy the . war file into webapp directory of your apache tomcat.
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.
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 :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With