Does Java Plug-in Software support multiple JAR files in the ARCHIVE attribute in the APPLET tag? If so, why can I get this to work?
The ARCHIVE attribute is supported in both the EMBED and OBJECT tags. The most common mistake is to put the JAR files in the wrong order. For example, if you use the Swing set in Java Plug-in Software and specify ARCHIVE=”Myjar.jar,swing.jar,…” Java Plug-in Software will fail to load the applet because by the time Myjar.jar is loaded and Java Plug-in Software tries to initialize the applet, swing.jar is not yet loaded. The JAR files in the ARCHIVE should be in the order of dependency. Since Myjar.jar depends on everything else, it should be put at the end of the list. The other common mistake is to put spaces or paths with the JAR file lists.
Related Questions
- Does Java Plug-in Software support multiple JAR files in the ARCHIVE attribute in the APPLET tag? If so, why can I get this to work?
- When using the Java Plugin, how do I get an applet to load classes from a JAR file not specified by the ARCHIVE tag?
- My applet is no longer scriptable in Internet Explorer with Java Plug-in Software. Why?