*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

What is the difference between war, jar & ear

Chiran Mathur
Ranch Hand

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

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
Anonymous
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
www.evisor.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the difference between war, jar & ear