Making a JAR
In the earliest days of Java, it was common to write simple applets that had only a single class file. More sophisticated applets might have dozens of class files as well as supporting files such as images and sounds. It became common to use the popular archive format, .zip, to bundle class files together. The Java Virtual Machine can read the .zip format, so it's not necessary to unzip these files.
Unfortunately, many users automatically unzip any arriving .zip file, breaking the applet. In Java 2, Sun provides tools for working with the Java archive format, JAR. A JAR file is still a .zip file, but includes a special manifest file to identify its contents. By using a suffix that is more clearly Java related, Sun has decreased the ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.