A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Difference between a WAR and a JAR file
Joined: May 29, 2001
Dec 27, 2001 22:01:00
I would appreciate if I am told what is the difference between a WAR file and a JAR file. Specifically which one file is present in the WAR which is not present in the JAR.
Thanks and regards,
Joined: Feb 20, 2001
Dec 27, 2001 23:12:00
the extension is the only real difference on a 'file' level, as a WAR file can be made using the jar tool.
A jar file is simply a way to 'zip up' and compress a whole bunch of class files. They fit into the directories that reflect their packages, etc, etc...
A WAR file is used to compress a web application. It's directory structure is specified by the web application (
So they are the exact same 'file type', but used for completely different purposes. There isn't really any one (or two or three) files that are 'missing' from one and present in another.
Don't get me started about those stupid
subject: Difference between a WAR and a JAR file
difference between JSP and servlets
difference between jar and war file
difference between .jar and .war files
What are ear,war and jar files ?
diff.between jar,war and zip file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014