This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes What is the difference between war, jar & ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "What is the difference between war, jar & ear" Watch "What is the difference between war, jar & ear" New topic

What is the difference between war, jar & ear

Chiran Mathur
Ranch Hand

Joined: Feb 07, 2001
Posts: 63
Can anyone please explain
Hakan Akkaya

Joined: Nov 21, 2001
Posts: 18
hi ,
i think you know what a jar file is . A war file is a web application file and a ear file is a enterprise archive file.
you should use that, when you are deploying e.g a webservice .There you must deploy a Ear file '(contains a jar file and a war file) and usually all the other files are automatically deployed.
Hope this helps
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
a Jar (java archive) file is set of java classes ,property files packaged together that is usually a library or a standart program.
a war (web archive ) file is a set of file that represent a web application. You can find in it the structure of a web application.
So you can find jsp,html,gif,.........and servlet classes as well as the descriptor.
the last one is a J2EE application archive with jar file for EJB and a war file for the web application
Benjamin l´┐Żonard
I agree. Here's the link:
subject: What is the difference between war, jar & ear
It's not a secret anymore!