Version 8.3.4

Setting Up Your Environment

Before you start coding, you have to make specific definitions in Application Designer and in your development environment for Java.

This document contains the following exercises:


Setting Up Application Designer

You have to define the source directory into which the adapter classes for your project are to be written. This directory will be used by the Code Assistant that you will use later in this tutorial.

Start of instruction setTo set up Application Designer

  1. Create a new directory with the name "src" in the directory that has been created for your project; that is: go to the directory <installdir>/tomcat/webapps/cis/cisyourfirstproject and create the directory /src.

  2. From the Home tab of the Layout Painter, choose Preferences.

    The following dialog appears:

    Configuration

  3. In the Source Directory field, specify the path to the src directory you have just created.

    Note:
    By default, the prefix "m_" is defined in this dialog. This prefix is used for all properties in the adapter class.

  4. Choose the Save and Apply button.

Top of page

Setting Up Your Development Environment for Java

Typically, development environments provide project management to define project settings.

Start of instruction setTo set up your development environment for Java

  1. Create a new Java project.

    It is recommended that you use the same project name as in your Application Designer project. For this tutorial, you should therefore create a Java project with the name "cisyourfirstproject".

  2. Include the file cis.jar in the required libraries of your project. You find this file in the following Application Designer directory:

    <installdir>/tomcat/webapps/cis/WEB-INF/lib

  3. Include the file servlet-api.jar in the required libraries of your project. You find this file in the following Application Designer directory:

    <installdir>/tomcat/common/lib

  4. Set up the output path (i.e. the path where the compiled classes will be located) so that it points to the following directory:

    <installdir>/tomcat/webapps/cis/cisyourfirstproject/appclasses/classes

You can now proceed with the next exercise: Writing the Adapter Code.

Top of page