Building the Runtime Environment for the Customized Message Generator

Sybase recommends that you build a jar file for customization. Otherwise, you can use the directory path to set up your environment.

  1. Change to the customclasses directory.
    • On Windows:
      cd C:\work\custom\customclasses
    • On UNIX:
      cd /work/custom/customclasses
  2. Build the jar file:
    • On Windows:
      C:\jdk141\bin\jar -cf mycustom.jar com
    • On UNIX:
      /usr/jdk141/bin/jar -cf mycustom.jar com
  3. Add the path to mycustom.jar to your environment.
    1. Shut down the application server if it is running.

    2. Modify <RepConnector_home_dir>\bin\repra_env.bat (Windows) or <RepConnector_home_dir>/bin/repra_env.sh (UNIX) to add the full path of mycustom.jar or the customclasses directory to the end of the CLASSPATH definition.
      • On Windows, either:
        • set CLASSPATH=C:\work\custom\customclasses;%CLASSPATH%

          or:

        • set CLASSPATH=C:\work\custom\customclasses\mycustom.jar;%CLASSPATH%
      • On UNIX, either:
        • CLASSPATH=/work/custom/customclasses:$CLASSPATH

          or:

        • CLASSPATH=/work/custom/customclasses/mycustom.jar;$CLASSPATH
    3. Start the application server to activate the environment changes.