The Java/ActiveX Integration Utility (jactivex) hosts automation-enabled ActiveX Controls in Java and generates Java source from type libraries.
Use the following command to run jactivex:
jactivex [options] <filename>
options | One or more jactivex options. |
filename | When run in default mode, this is the name of the ActiveX file to create a wrapper for. Otherwise, if you use /javatlb option and any other options, this is the name of the type library that the Java source will be generated from. |
/ao[+|-] /bx /ci:as /d /e /G5 /is[+|-] /javatlb /l /nologo /p /p:b- /r /t /udi[+|-] /w /wec /wfc /WX /xi /X:m- /X:rkc /X:s2 /X:vi /?
/b /c2j /creg /G3.1 /j /n /x2 /xc /xd- /xh
Jactivex replaces both javatlb and jcom. By default, jactivex is used to host automation-enabled ActiveX controls in Java. To access typelib features, you must use the /javatlb command-line option to activate the other options described in the Jactivex Options section.
The default operation is to create a JavaBean wrapper for an ActiveX Control. Jactivex creates IDispatch wrappers for an ActiveX object using code and helper objects that are similar to JavaBeans to add and remove listeners for the ActiveX event interfaces.
You can also use jactivex to generate .java files for the classes and interfaces described in a type library. These .java files, once compiled into .class files, allow Java programs to use Component Object Model (COM) services. Jactivex uses COM type library information to create Java classes that represent COM interfaces. See Using COM Objects in Java for details.
Jactivex also inherits all the capabilities of the jcom utility (released in previous versions of the Microsoft SDK for Java) to generate Java source files from type libraries. These operations are performed with /javatlb, but are otherwise the same as with the jcom utility.
When run in default mode, <filename> is the name of the ActiveX file to create a wrapper for.
The following command creates a JavaBean wrapper for an ActiveX Control:
jactivex mscal.ocx
Otherwise, if you use /javatlb option and any other options, this is the name of the type library or .dll that the Java source will be generated from.
!WARNING Do not use a version of the Microsoft® Visual J++® compiler earlier than 1.02.3920 to compile the files generated by this tool.
Jactivex allows and correctly generates attributes for fields that are of type: