SAMPLE: Download Java Applets that Require Other Java Classes (241814)
The information in this article applies to:
This article was previously published under Q241814 SUMMARY
Often a Java applet may need some other Java classes to be available on the client's machine. If the client's machine does not have these classes installed, the Java applet generates a ClassNotFoundException error.
While it is possible for the supporting classes to be bundled within the Distribution Unit (DU) that contains the applet, often it is useful to unbundle the applet classes from the supporting classes for increased flexibility with respect to packaging and versioning. For example, by creating a separate DU for relatively stable library classes, once that DU is installed on the client's machine, it will not have to be downloaded until is has a version change. The DU that contains the applet classes may undergo many version updates during its early lifecycle so it would want to be packaged separately. It usually is a good idea to package third- party libraries separately for the same reasons.
This article describes how you can download Java classes that are needed by an applet and be sure that those classes are available before the applet starts.
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbdownload kbfile kbhowto KB241814 |
---|
|