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

Last reviewed: January 29, 1998
Article ID: Q177159
The information in this article applies to:
  • Microsoft Win32 Virtual Machine for Java
  • SDK for Java, version 2.0
  • Microsoft Internet Explorer version 4.0 for Windows 95
  • Microsoft Internet Explorer version 4.0 for Windows NT 4.0

SUMMARY

The Microsoft Virtual Machine for Java that ships with Internet Explorer 4.0 as well as with the SDK for Java 2.0 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=foo.class
       name=foo
       width=320
       height=240 >
   <param name=cabinets value=foo.cab,bar.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=foo.class
       ARCHIVE=foo.zip,bar.jar
       name=foo
       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:

   ARTICLE-ID: Q177168
   TITLE     : INFO: How Does the Java Virtual Machine Search for Java

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:

   ARTICLE-ID: Q163637
   TITLE     : 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 page 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 : CmdLnUtils JCab JVM VJMisc
Technology : kbInetDev
Version : WINDOWS:2.0,4.0
Platform : WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.