In Java enterprise development, WAR (Web ARchive) is the standard container file format for packaging Java EE applications as a single, deployable unit which can be deployed on Java EE-compliant application servers like Tomcat, JBoss, Glassfish...
Eclipse IDE provides robust development environment for Java EE applications, including the ability to package and create WAR file. Following are the steps to create WAR file for a Java dynamic web project in Eclipse:
- Select project name in the Project explorer view, we can access the export WAR function by either:
 
 
- The WAR Export dialog appears, we have to specify two required information:
 
- In addition, there are three optional checkboxes:
Now click Finish then Eclipse will create the desired WAR file.
 Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.