The Java2Com Tool

The java2com tool analyzes Java classes (using Java's reflection mechanism), and outputs:

The best way to familiarise yourself with the basics of the java2com tool is to run through one of the step-by-step examples:

There is also a good description of the java2com tool in the Accessing Java objects from COM section.

Start the 'java2com' tool using the command java com.linar.java2com.Main. Make sure that the J-Integra® runtime (jintegra.jar) is in your CLASSPATH environment variable. You can run this tool on any platform.

For Windows users a batch file called java2com.bat is provided in the bin directory. This allows you to launch java2com from any directory as long as the jintegra bin directory is in the PATH and the CLASSPATH is configured correctly.

The 'java2com' tool displays the following dialog box:

On this page you will find information on:

  1. The Java classes & interfaces, IDL file name and output directory
  2. Saving and loading settings
  3. Running java2com on the command line
  4. Using the Names... dialog box

The Java classes & interfaces, IDL File Name, and output directory


Saving and loading settings


Running java2com on the command line


Using the Names... dialog box