This section describes the command-line options that can be used with jexegen.
Valid only when building a DLL; specifies the base address where you want the DLL to load. Both hex and decimal formats are supported.
Sets the base directory; used to determine package names of specified class files. When used with the /raw or /bindto option, this option specifies the base directory that file operations are relative to. By default, package names and file operations are determined relative to the current directory. If used more than once on the command line, all /base options are relative to the original (current) directory.
Specifies the executable (.exe file) or dynamic-link library (DLL) to bind the class resources to.
Valid only when building a DLL; specifies a file that provides COM registration information (CRI). See CRI Files for details on the format of CRI files.
Builds a COM DLL.
Required; sets the name of the main class file, which must contain the public static main method. The name specified on the command line must be the same as the class's internal name; it is case-sensitive and you must separate package names with periods(.).
For example, if you usually run your application with the command line
view MySample.Sample
the appropriate switch for jexegen would be
/main:MySample.Sample
This option is ignored when building DLLs.
Specifies the maximum format version allowed. Specifying /maxver:1 generates version 1 format resources, which can only contain class files (in order to be compatible with older virtual machines). Specifying /maxver:2 generates version 2 format resources, which can contain arbitrary data files. This is the default.
Suppresses display of the Microsoft copyright banner.
Indicates that you do not want to specify a main class file. This option is only useful in conjunction with the /raw or /bindto option, and is ignored when building DLLs.
Specifies the name of the output file. If you do not specify the /out option, jexegen creates the executable file Jex.exe by default.
Searches subdirectories recursively for the specified class files. By default, subdirectories are not searched.
Turns off subdirectory recursion. Only useful if the /r option has already been used.
For example, the following partial command line instructs jexegen to find all class files matching This*.class in the current directory and all subdirectories, and all files matching That*.class only in the current directory:
/r This*.class /r- That*.class
Saves resource data to a file and does not generate an executable. The data file generated is of the appropriate format to be used with the IJavaExecute2::SetClassSource method.
Valid only when building a DLL; autoregisters (by calling DllRegisterServer) the built DLL.
These three options allow you to switch between the old (prior to the Microsoft SDK for Java version 3.2) and new ways that jexegen handles .res, .tlb, and portable executable (PE) files. For more information, see the section How Jexegen Handles Resource Files. If you use the option with the minus sign, you turn off the new behavior. The default is /special:all (all new behaviors are enabled).
Note If you turn off the TLB behavior, jexegen will not parse the type library that is looking for custom MTS registration attributes.
Specifies the desired per-Win32-thread stack reserve size, which is the amount of virtual memory reserved for each thread's stack. This option is only useful when building executables; the value is read from the .exe header when the executable is launched and is static thereafter. Both hex and decimal formats are supported.
Verbose mode; provides detailed output.
The generated executable will not have an associated console window. This option will only be useful for graphical applications.
Exposes Java resources as Win32 resources. The resource files are listed as file inputs to the jexegen command. By default, this option is disabled (that is, Java resources are not exposed as Win32 resources).
Does not expose Java resources as Win32 resources. Useful only if the /win32res option has already been used.
Displays jexegen usage information including a list of available options.