INFO: Using Long Class File Names with the Java VM for Win16

ID: Q179549

The information in this article applies to:

SUMMARY

This article discusses how the Microsoft Win16 Virtual Machine for Java uses long file names.

MORE INFORMATION

The Microsoft Win16 Virtual Machine for Java, is able to use long file names by referencing them directly on your Web server in the applet tag of the HTML. If the HTML page and class files are on the local disk of a machine running Win16, however, it is necessary to place the .class files in an uncompressed .zip file and name that file in the CODEBASE attribute of the applet tag, like this:

   <Applet code=MyClassName CODEBASE=zipfile.zip width=... height=...>

This would be necessary only for classes that exist on the Win16 local machine. If the .class files are on a network, it is generally easier to avoid file name problems by using the HTTP: protocol to access them instead of the FILE: protocol.

Please note that this use of the CODEBASE attribute is specific to the Microsoft Win16 Virtual Machine for Java. Other browsers, including Internet Explorer on other platforms, do not support this use of the CODEBASE attribute, and generally cannot load an applet if the applet tag's CODEBASE attribute specifies a .zip file.

REFERENCES

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: long file name filename Win16

Keywords          : JVM 
Version           : WINDOWS:
Platform          : WINDOWS
Issue type        : kbinfo

Last Reviewed: November 11, 1998