To compile a custom adaptor:
- 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 |
- Execute the compile.
Execute the following command:
javac -cp installation-directory\lib\sdp.jar Java source program |
- 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 |