Microsoft SDK for Java

JAVAEXECUTEINFO

This structure is passed into IJavaExecute::Execute.

struct {
   DWORD cbSize;
   DWORD dwFlags;
   LPCOLESTR pszClassName;
   LPCOLESTR *rgszArgs;
   ULONG cArgs;
   LPCOLESTR pszClassPath;
} JAVAEXECUTEINFO, *LPJAVAEXECUTEINFO;

Members

cbSize Must be set to the size of JAVAEXECUTEINFO in bytes.
dwFlags Can be:

JEIF_VERIFYCLASSES: Turn verification of all classes on. By default, the verification setting from the registry will be used.

pszClassName The name of the class to load. The class must have a public method that matches the following signature:
public static void main(java.lang.String[]);
rgszArgs The array of Unicode strings. This string is converted to a Java array of strings. The array is then passed as the argument to the main method. The cArgs member indicates the number of strings in this array.
cArgs The number of strings in rgszArgs.
pszClassPath Specifies additional class path elements, which are separated by semicolons (;). These class path elements will be searched before those in the default class path.

pszClassPath can be NULL if no additional class path elements are required.


Remarks

The class path is a per-process variable. Any extensions made to the class path by IJavaExecute::Execute will persist after IJavaExecute::Execute has returned. IJavaExecute::Execute is unsuitable, therefore, for use in a shared library.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.