Tutorial: Create Projects

Create an AppMaster Builder project and an Enterprise Developer COBOL project.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

You need an AppMaster Builder project in which to develop your application, and an Enterprise Developer project in which to compile and run the application. Here we create both projects, and populate the AMB project with the demonstration application files needed to complete the tutorials.

Requirements

Before attempting this tutorial, you must complete:

If you have closed Enterprise Developer, start it; then open the AppMaster Builder perspective.

Create an AppMaster Builder project

When you create an AppMaster Builder project, AMB creates and populates a directory structure containing the files required to develop an application. Each project subdirectory contains specific files and file types.

  1. With the AppMaster Builder perspective active, click Admin > Project > Create.
  2. In the Administrator Password field, type ambadmin; then click OK.
    Important: This tutorial assumes you can use the default AMB administrator password. However, you might be required to supply an alternative password if it has been changed.
  3. In the Qualifier field, type c:\amb_tutorials. This represents the full path to a directory that serves as a parent to contain your AppMaster Builder projects.
  4. In the Project field, replace the default text with BLDRAPPL, which is the name of the demonstration application.
  5. In the Group field, replace the default text with dev1 to represent a development group name.
  6. Click Create. A message appears in the dialog header indicating that the project was created.
  7. Click Exit.
Copy demonstration files
  • Using Windows Explorer or a command prompt, copy all of the subdirectories under %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\AMB-Main\Mainframe\AMB\Classic to the c:\amb_tutorials\BLDRAPPL\dev1 directory, overwriting the contents. For example, at a command prompt from the c:\amb_tutorials\BLDRAPPL\dev1 subdirectory, enter:
    xcopy "%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\AMB-Main\Mainframe\AMB\Classic" /s/y
Set the project path
  1. From the Eclipse IDE, click Window > Preferences.
  2. Expand Micro Focus; then click AppMaster Builder.
  3. In the Project path field, type in or browse to and select the c:\amb_tutorials\BLDRAPPL\dev1 directory; then click Apply.
Create an Enterprise Developer COBOL project
We need an Enterprise Developer project in which to store the code we generate from AppMaster Builder. From the Enterprise Developer project, we can compile and run the generated code.
  1. From the AppMaster Builder perspective, click AppMaster Builder preferences page AppMaster Builder preferences page.
  2. On the AppMaster Builder Preferences page, check Compile in COBOL Project.
  3. Click New.
  4. In the Project name field, type AMB BLDRAPPL; then click Finish. If you are asked whether or not to open the COBOL perspective, choose either option.

    Enterprise Developer creates the project in your default Eclipse workspace, and AppMaster Builder populates the field with the path to the new COBOL project.

  5. Click Apply and Close.
View the new projects
  1. Switch to the AppMaster Builder perspective. The BLDRAPPL project now appears on the Project Explorer tab.
  2. Switch to or open the Eclipse COBOL perspective. You should see the new Enterprise Developer AMB BLDRAPPL project on the tree view.

This completes the tutorial. Next, please complete Tutorial: Add Objects to the AMB Project.