Using the EZ Jcom Tool
The first page in the wizard is used to specify the source of the COM object. Typically, this will be a .dll file. It can also be a .exe or a .ocx file. Sometimes, the information about a COM object comes separate from the COM object itself. In this case, the input will be a .tlb file. The "browse" button can be used to specify the file directly.
The "search" button can be used to look at registered COM objects.
The COM object may also be specified by the "progID", which is a string of the form "objtype.objName".
Once you have specified the COM object, click "Next". Now you can specify the the name of a directory. All the output from EZ Jcom, including java, JNI and HTML files will be placed in this directory. To avoid confusion, it is recommended that this directory be empty. If you enter a directory name that does not exist, you will be prompted for directory creation.
At the "Package" page, the name of a Java package needs to be entered. All generated Java classes will be placed in this package.
The "Library" page is for specifying the name of the EZ JCom JNI library. The "JNI library" is a bridge between Java and COM. This will be the name of a DLL, so it must not be the same as the name of the COM DLL, otherwise there may be a conflict in loading them.
The tool will suggest a "J" added to the start of the name.
When all the input has been specified, click the "Build" button. This will generate several files in the "Output" directory, and will generate some information on how to use them.