Creating a New Java Application

This section talks about how to setup and use S7RClientSSj class for Java application.

To create a new Java application, do the following in your Java IDE:

Procedure

  1. Set up a new project
  2. Add the following to the compile classpath
    1. <TIBCO_HOME>\mainframe\tcp\version\lib\S7R-ClientSS-j.jar
    2. Any other jars your program needs
  3. Add the following to the run classpath.
    1. <TIBCO_HOME>\mainframe\tcp\version\lib\S7R-ClientSS-j.jar
    2. <TIBCO_HOME>\mainframe\tcp\version\lib\S7R-TcpClient-j.jar
    3. <TIBCO_HOME>\mainframe\tcp\version\lib\S7R-TcpClientLibrary-j.jar
    4. <TIBCO_HOME>\mainframe\tcp\version\lib\slf4j-api-1.7.21.jar
    5. Any other jars your program needs
  4. Write your Java program similar to:
    1. the "Recipe" example - <TIBCO_HOME>\tcp\version\samples\src\SSESTCPrecipe.java
    2. the "Trigger" example - <TIBCO_HOME>\tcp\version\samples\src\SSESTCPtirgger.java