wood burning stoves 2.0*
The moose likes JSP and the fly likes diff.between jar,war and zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "diff.between jar,war and zip file" Watch "diff.between jar,war and zip file" New topic
Author

diff.between jar,war and zip file

kapil bhate
Greenhorn

Joined: Mar 04, 2004
Posts: 15
hi can anybody explain me the difference between Jar file, War file and Zip file.please reply
thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Welcome to the Ranch "kapil java"!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
JSP Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982

hi can anybody explain me the difference between Jar file, War file and Zip file.

JAR file is Java Archive, which is a compress format of Java Classes. Basically, it seems using the same format of ZIP, as you can use WinZip to unzip JAR files. However, I think if I give you a ZIP file, you may not notice that it is a Java Archive, and thus, the naming convention comes.
WAR file is another thing, although WAR file is created by the JAR utility, and is expectde to be ZIP format, the difference is, when you put a WAR file at the document root of the Application Server, it KNOWS the WAR file is a Web Application, and it will load it dynamcally. But if the file extention is NOT WAR, say JAR, the container will not load the application.
Hope this help.
Nick.


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: diff.between jar,war and zip file