How the VM Finds Java Resources in Win32 Modules
The Microsoft VM can be directed to look for Java resources within a Win32 PE image in the following ways:
- If the resources are bound into a DLL, the DLL can be placed on the class path. Use the same syntax for adding a .zip file to the class path, but specify a .dll extension. A restriction exists on how a DLL must be built to be placed on the class path. Specifically, the resource containing the file directory must be stored with a specific resource ID (for more information, see Exegen Format Versions).
- The COM interface IJavaExecute2::SetClassSource can be used to add a Win32 module to the list of locations where the VM searches for Java resources. See Javaexec.h in the \Include subdirectory of the Microsoft SDK for Java installation.
- The RNI method AddModuleResourceClassSource can also be used to add a Win32 module to the list of locations where the VM searches for Java resources. See Native.h in the \Include subdirectory of the Microsoft SDK for Java installation.
© 1999 Microsoft Corporation. All rights reserved. Terms of use.