my dog learned polymorphism*
The moose likes Beginning Java and the fly likes difference btn Jar, War and Ear File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference btn Jar, War and Ear File" Watch "difference btn Jar, War and Ear File" New topic
Author

difference btn Jar, War and Ear File

Manish Jaju
Greenhorn

Joined: Jul 21, 2004
Posts: 24
What are differences between Jar, War and Ear File.
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Jar is the Java archive - that has all normal java classes.
war is the web archive containing web relates stuffs like Servlets, Jsp ..
ear is the enterprise archive having both jar & war.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Manish Jaju
Greenhorn

Joined: Jul 21, 2004
Posts: 24
But servlet is also java file, won't it be included in Jar file. and what about EJB files, which are also java Files. Please clarify
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Originally posted by Manish Vyas:
But servlet is also java file, won't it be included in Jar file. and what about EJB files, which are also java Files. Please clarify


Ejb's will be inside a jar.

Servlet in the war is used by the containers for deploying in the web environments, which has it's own deployment descriptor called web.xml.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference btn Jar, War and Ear File