What is the difference between a tar package and a jar package and a war package?

Source: Internet
Author: User
Tags java web

Tar:tar is *nix under the packaging tool, the generated package is usually also used tar as the extension, in fact, TAR is only responsible for packaging, not necessarily compression, in fact, can be compressed, can not be compressed, Usually you see xxxx.tar.gz, it means that the TAR packet is compressed, and the compression algorithm used is the GNU ZIP, and xxxx.tar.bz2 that the package uses the BZIP2 algorithm for compression, of course, such a naming is only a convention, not mandatory. To put it simply, tar is just packaging.

Jar: Java Archive,java package, Java compiled after the generation of class files, but if directly published these class files will be very inconvenient, so the many class files packaged into a jar, In addition to the class file in the jar can include some resources and configuration files, usually a jar package is a Java program or a Java library.

War:web application Archive, which is basically the same as a jar, but it usually means that this is a Java WEB application package, and Tomcat is a servlet container that recognizes the war package and deploys it automatically. Just look at the jar and the war.

What is the difference between a tar package and a jar package and a war package?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.