• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff.between jar,war and zip file

 
kapil bhate
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic