Friday 1 September 2017

Difference between ear jar and war files ?

These files are simply zipped files using java jar tool. These files are created for different purposes. 


.jar files: The .jar files contain the group of .class files and libraries. 


.war files: The war file contains static resources i.e., html, js, css...etc and dynamic resources jsp, servlets etc and other files (web.xml) for necessary for the development of web applications. Combination of these files zipped in to one module called .War file. 


.ear files: The .ear file contains anything Java/J2EE (Enterprise) related files zipped in to one module called .ear file. It is deployed in Application server.

No comments:

Post a Comment