When to Use

   

When to Use JAR s

As 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:

  • Is the user of the JAR file concerned about security on his system?

  • Can the application or applet be bundled?

  • Does the application need to take advantage of compression?

  • Does the application or applet need to be versioned?

  • Is download time an issue?

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.

   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net