Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

Attribute for <APPLET ...>
ARCHIVE = "URL"

Usage Recommendation
thumbs up use it

ARCHIVE designates the URL of a JAR (Java ARchive) file. A JAR file is a compressed file containing the component files needed to run an applet. For example, the applet below uses ten different class files. Using just the CODE attribute we can point to the top class, which will load the others. That requires ten separate full file downloads. However, ARCHIVE indicates that "FieldTestF.jar" contains some (or all) of the needed resources. The browser downloads the jar file first, and looks in the jar file for class files it needs before heading back out on the net. This saves bandwidth several different ways. Jar files are compressed and download quicker (in our example our one jar file is 10K compared to 15K of class files). Downloading just one file saves the overhead that would be required for (in this case) ten separate downloads. Finally, if every class must be downloaded separately, the applet will start and run as it can, but then stop when it has to wait for some component to download. With jar files, everything is downloaded first, and the applet "starts all at once", which is much more aesthetic.

<APPLET 
  CODE="FieldTestF.class"
  WIDTH="100%" HEIGHT="90"
  ARCHIVE = "FieldTestF.jar"
  >
This example uses an applet.
</APPLET>

gives us this applet

This example uses an applet.

Any kind of file can be put in a jar file, not just classes. Many people add images that will be used in the applet. Adding images, however, requires a little extra Java programming. For that and other technical details on creating Java applets, we refer you to the applet section of the Java FAQ.


Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: