What differentiates a JAR from a standard ZIP file is the file. This is a special file inside the archive that contains metadata about the JAR, such as which class contains the main method or what other libraries are required.

In professional development, you rarely use the jar command manually. You use build automation tools.