Set Up the ProgramREST Project

Walks you through the process of creating an Enterprise Developer project for the ScheduleDemo demonstration application and its REST Web service.

Create the ProgramREST project

  1. In Eclipse, click File > New > Other.

    This opens the New dialog box.

  2. Expand the Micro Focus COBOL folder, and then click COBOL Project.
  3. Click Next.

    This opens the New COBOL Project Wizard.

  4. In the Project name field, type ProgramREST.
  5. Check Use default location; then click Finish.

    The Application Explorer view now shows the ProgramREST project under the Enterprise Developer > Enterprise Development Projects node.

Set build configuration properties ProgramREST

When Eclipse builds the ProgramREST project, you want the build action to produce a shared object (.so) library file. To ensure this behavior, you need to set the Build Configuration to the All Native Library Files target type:

  1. In the Application Explorer view, right-click the ProgramREST project; then select Properties from the context menu.
  2. Expand Micro Focus > Build Configurations; then click Link.
  3. From the Target Type drop-down list, select All Native Library Files; then click Apply and Close.

Add ScheduleDemo demonstration files to the project

  1. From the Application Explorer view, right-click the ProgramREST project and select Import from the context menu.

    This opens the Import dialog box.

  2. Expand General and click File System.
  3. Click Next.
  4. Click the Browse button that corresponds to the From directory field, and browse to the $COBDIR/opt/microfocus/VisualCOBOL/demo/imtk/scheduledemo directory.
  5. Click Open.
  6. On the list of files, check all files except Readme files.
  7. Click Finish.

    This adds the files to the project and builds the project automatically.