Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
This article shows you how to store your applets on client machines. It covers clients that aren't running Java, clients that have Java but don't have your applet installed on their machine, and clients that already have your applet on their machine. It also explains how to keep your applets from colliding with applets that other authors have stored on your client's machine, and addresses versioning problems. Finally, it discusses the security aspect of loading applets from a hard drive instead of over the network, covering when you should and shouldn't use this technique.
Clients without Java
Some of your users will be running non-Java-aware browsers or will be running Java-aware browsers with Java disabled. Without
Java support they won't even know that an applet is present. To support these users, you must place text within the applet
tags so that your users know something is there. The bold text in the example below demonstrates this support.
| <APPLET CODE = "MyApplet.class" WIDTH=200 HEIGHT=100> <PARAM NAME = datafile value = "data.txt"> There is a Java applet here. To use it, you need a Java aware browser with Java enabled. </APPLET> |
Clients without your applet
For users with Java, your applet must detect whether the client machine has your applet loaded on its hard drive. Unfortunately,
Java applets are not permitted to explicitly read to or write from the hard drive of a client machine. However, applets are
permitted to use the built-in Java class loader to load classes by name. You can use this class loader to determine if your
applet is installed on a client's machine by attempting to load a class that is only stored on the client's machine, not on
your server. If the load succeeds, then your applet is installed. If it fails, it isn't. You will need a configuration class
later (see Versioning), so use this class. The code looks like this:
MOUNTAIN VIEW, Calif. (February 24, 1997)
"Signed Objects, which uses standard JAR (Java Archive file format), the open foundation for installing and updating signed components over the Web to allow users to designate levels of trust for applications that have been downloaded across the Net. Each application can have fine-grained levels of capabilities which the users can accept or deny. (Feature available in the next release)."