INFO: Support for Multiple CABs or JARs in the Same APPLET Tag

ID: Q177159


The information in this article applies to:
  • Microsoft virtual machine
  • Microsoft Internet Explorer for Windows 95
  • Microsoft Internet Explorer for Windows NT 4.0
  • Microsoft SDK for Java, versions 2.0, 2.01, 2.02, 3.0, 3.1, 3.2


SUMMARY

The Microsoft virtual machine that ships with Internet Explorer 4.0x as well as with the SDK for Java 2.0 and later provides support for having multiple CABs and JARs in the same applet tag.


MORE INFORMATION

A parameter named Cabinets may contain multiple CAB files, separated by commas (,). For example, the <applet> tag in your HTML file can look like this:


<applet
    code=test.class
    name=test
    width=320
    height=240 >
<param name=cabinets value=test.cab,pack.cab>
</applet> 
An Archive attribute may contain multiple JAR files or ZIP files, separated by commas. The JAR files or ZIP files may be compressed or uncompressed, but the manifest of the JAR file is ignored, including any digital signature information the manifest may contain.

For example, the APPLET tag in your HTML file can look like this:

<applet
    code=test.class
    ARCHIVE=test.zip,pack.jar
    name=test
    width=320
    height=240 >
</applet> 

You can include an Archive attribute and Cabinets parameter in the same <applet> tag. If you do, the Virtual Machine for Java will search the CAB files from the Cabinets parameter and ignore the Archive attribute. Note that browsers other than Internet Explorer 4 will generally ignore the Cabinets parameter.


REFERENCES

In order to understand how the Virtual Machine searches for the class requested from a Web page, please see the following article in the Microsoft Knowledge Base:

Q177168 INFO: How Does the Virtual Machine Search for Java Classes?

You can download the latest release build of the Java Virtual Machine from http://www.microsoft.com/java/.

For more information on the latest version of the Microsoft Virtual Machine, please see the following article in the Microsoft Knowledge Base:
Q163637 INFO: Availability of Current Build of Microsoft VM for Java
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/

http://support.microsoft.com/support/java/

Additional query words: multiple cabs jar files applet

Keywords : kbnokeyword kbCommandLine kbSDKJava300 kbVJ kbSDKJava310 JVM jcab kbSDKJava320 kbSDKJavaFAQ kbJavaVMFAQ
Version : WINDOWS:2.0,2.01,2.02,3.0,3.1,3.2
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: November 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.