Version 8.2 (2013-03-18)
 —  Appendices  —

Setting up Eclipse as Your Development Environment

The information in this section applies when you create your layouts in the development workplace and want to use Eclipse as your development environment for Java.

The following topics are covered below:


Creating a Project in the Application Designer Environment

Application Designer has an application project concept in which each project is kept in its own directory.

When you create a project with Application Designer's Project Manager, a new directory is created in your web application directory. For example, when using the standard Windows installation, the root directory of the project is <installdir>/tomcat/webapps/cis/<yourproject>.

For further information, see Project Manager in the Development Workplace documentation.

Top of page

Creating a Java Project in Eclipse

You must have a source directory into which the adapter classes for your project are written. It is recommended that the name of this source directory is src. For example, create the directory <installdir>/tomcat/webapps/cis/<yourproject>/src in order to keep the sources. See also Preferences in the Development Workplace documentation.

At design time, Application Designer expects the classes to be located in the application project's /appclasses/classes directory.

This section describes the simple way of creating a Java project for Application Designer. If you are an experienced Eclipse user, you can also store the Java project in a different directory and then link the source files from any directory.

Start of instruction setTo create a Java project for an Application Designer project

  1. From the File menu of Eclipse, choose New > Project.

    The following dialog box appears.

    graphics/ecl-newjavaproject1.png

  2. In the resulting dialog box, select Java Project and choose the Next button.

    The following dialog box appears.

    graphics/ecl-newjavaproject2.png

  3. Specify a name for your Java project name.

    If you want to work with existing Application Designer projects (which you have created in the development workspace), it is recommended that the Java project name and the Application Designer project name are the same.

  4. Place the root of the project inside the project directory that was created by Application Designer. Therefore, select the option button Create project from existing source and specify the corrsponding directory.

  5. Choose the Next button.

    The resulting page is used to define the Java build settings for the Eclipse project.

    graphics/ecl-newjavaproject3.png

  6. Make sure that Eclipse uses the following directories of your Application Designer project:

  7. Go to the Libraries page.

    graphics/ecl-newjavaproject4.png

  8. Use the Add External JARs button to add all libraries which are required by your project. You must add at least the following libraries:

  9. Choose the Finish button.

    Your project is set up.

    graphics/ecl-newjavaproject5.png

Top of page