When to Use JAR sAs you have seen, using JAR files in an application or applet have many advantages over multiple class files or the standard ZIP file format. When deciding whether to package or bundle a set of class files or resources as a JAR, here are some questions to ask:
Obviously, there are probably other criteria to use when trying to decide on creating a JAR file out of an application or applet. Each system is different and has different requirements and constraints. However, by using JAR files wherever possible, you will be able to take advantage of the Java core language more and use some of the best features for deployment, execution, and security. |