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?