Generating and Compiling Java Wrapper Files

The Java code generator produces a set of files from each component signature, plus a batch file and manifest file used to compile the .java files into .class files, and package them into a .jar file.

The .jar file can be imported into a Java development tool, and the JavaBeans integrated into the Java application.

To generated, compile, and package Java files:

  1. Generate the Java wrapper source files, batch and manifest files, using the /sto command line switch:
    /sto/lan=jav {/pth=Path} {/pkg=Package} FileName {SignatureList }

    For example, the following command line instruction generates files for the PRODUCT component in the D:\output directory.

    idf.exe /sto /lan=jav /path=D:\output /pkg=acme.shop AcmeShop PRODUCT

    Because the /pkg subswitch is used, the .java files are located in the subdirectory \acme\shop, and each .java file contains the package declaration:

    package acme.shop;

    The AcmeShop.bat and AcmeShop.mf files are located in D:\output.

  2. Run the generated .bat to compile the .java files into .class files and archive them in a AcmeShop.jar file.

    For example, the AcmeShop.bat file generates the AcmeShop.jar file.

Import the generated .jar file into your Java development tool.