This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes difference btn Jar, War and Ear File Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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
 
Similar Threads
Deploying My project in Jboss server
ear file
Strange EJB Behaviour
project dependencies ?
Is it wrong to place EJB jars in a WAR file?