Walks you through the process of creating an
Enterprise Developer project for the BookDemo application.
Create the ProgramEJB project
- From the Eclipse main menu, click
File >
New >
Other.
This opens the
New dialog dox.
- Expand
Micro Focus COBOL, and then select
COBOL Project.
- Click
Next.
This opens the
New COBOL Project dialog box.
- In the
Project name field, type
ProgramEJB.
- Ensure that the 32-bit template is selected, so that a 32-bit project is created. A 32-bit project is required to match the
bitism of the
enterprise server instance you create to run this application later in the tutorial.
- Check
Use default location, then click
Finish.
The
Application Explorer view now shows the
ProgramEJB project.
Set build configuration properties for ProgramEJB
When Eclipse builds the ProgramEJB 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:
- In the
Application Explorer view, right-click the
ProgramEJB project; then select
Properties from the context menu.
- Expand
Micro Focus > Build Configurations, then click
Link.
- From the
Target Type list, select
All Native Library Files, then click
Apply and Close.
Add BookDemo demonstration files ProgramEJB
- From the
Application Explorer view, right-click the
ProgramEJB project and select
Import from the context menu.
This opens the
Import dialog box.
- Expand
General and click File System.
- Click
Next.
- Click the
Browse button that corresponds to the
From directory field, and browse to the
$COBDIR/demo/imtk/bookdemodirectory.
- Click
Open.
- On the list of files, check the following:
-
book.cbl
-
book-rec.cpy
-
bookfile.dat
-
bookfile.idx
- Click
Finish.
This adds the files to the project and builds the project automatically.