Compiling a Project

Produce an executable .ccx file from CCL code. CCL code must be compiled to produce an executable to run on Event Stream Processor.

  1. (Optional) Set CCL compiler options.
    1. Choose Window > Preferences.
    2. Expand the tree view to SAP Sybase Event Stream Processor > Run Test.
    3. Click Run Test and go to Compiler output directory.
    4. To change the directory for your compiled projects, click Change, select a directory, and click OK.
    5. To confirm any other changes, click OK.
      Note: By default, the compile directory is set to bin, which means the .ccx files are created in a subdirectory relative to the project's directory.
  2. In the SAP Sybase ESP Authoring perspective, in Project Explorer, expand the tree view to show the .ccl file for the project.
  3. Select and open the .ccl project that you want to compile.
  4. If you want to compile a project without running it, either to check for errors or just to have an updated .ccx file, click Compile Project on the main toolbar or press F7.
  5. If you want to compile and run the project, click Run ESP Project run project.

    The project automatically compiles and runs. The Server View in the SAP Sybase ESP Run-Test perspective opens, showing the project connection. A successful connection displays the server streams below the server folder. If the connection is unsuccessful, you see a Server Connection error dialog.

Studio silently saves all open files belonging to the project, compiles the project, and creates the .ccx file (the compiled executable). Compilation errors are displayed in Problems or Console view in each perspective, depending on the type of error. And, if you selected Run ESP Project run project it also runs the compiled project.

Studio returns an error when a project refers to a schema from an imported file but the project compiles without errors. Refresh the file by closing the project or create the files in the opposite order.