File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Difference b/w .ear, .war & .jar ? 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 » Servlets
Reply Bookmark "Difference b/w .ear, .war & .jar ?" Watch "Difference b/w .ear, .war & .jar ?" New topic
Author

Difference b/w .ear, .war & .jar ?

SJ Rao
Greenhorn

Joined: Mar 05, 2003
Posts: 25
Can someone please tell me the exact difference b/w .ear, .jar & .war ?
& under what circumstances should a application have these files ?

One of my application has a .ear file & an other application doesnt have. Both applications use framework which is based on MVC architecture.

So can someone tell me when do we deploy .ear file ?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

I always think of it in these tearms.

ear = Enterprise Application that you place in an application server
war = Web Application that you place in a web container
jar = Java Application that can be placed anywhere and can run just from a command line

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
singhdil
Greenhorn

Joined: Jun 29, 2002
Posts: 5
JAR is used in Java Beans as a Componet Technology(COM) , applets and other application having main class that is Desktop applications.
WAR is for servlets
EAR for J2EE Server Side Component Technology(DCOM)

Any Doubt?


dil
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difference b/w .ear, .war & .jar ?
 
Similar Threads
war and ear
.ear .war files
Difference b/w .jar, .ear, .war ?
.ear .war files
exception and error while importingwar in websphere applicationserver6