6.5 Compilation procedure

To compile a custom adaptor:

  1. In preparation, define an environment variable.
    Add the path shown below to the operating user's PATH environment variable, which was specified when Stream Data Platform - AF was set up. This step is not required during subsequent compile operations.

    installation-directory\psb\jdk\bin

  2. Execute the compile.
    Execute the following command:

    javac -cp installation-directory\lib\sdp.jar Java source program

  3. Create a .jar file (in the case of an in-process connection custom adaptor)
    In the case of an in-process connection custom adaptor, create a .jar file that groups together the class files generated during the compile.
    The following is an example of a command to group together class files A.class and B.class in the test directory into a file called test.jar.

    jar cf test.jar test\A.class test\B.class