Twitter Logo Follow us on Twitter
Project Information About this project

Installing a RAP Target

By default, the Eclipse IDE compiles all projects in the workspace against the running platform, which is the IDE itself. But since RAP applications must be compiled against the RAP runtime, the workspace must be configured to do so. This is done by setting the RAP runtime as the target platform.

Using the RAP Tools to install the latest target platform

On the Eclipse welcome screen (Help > Welcome), go to Overview > Remote Application Platform. Choose Install Target Platform on the following page. In the upcoming dialog confirm the default values, which starts the target installation process.

After the installation finished you are prepared to work with RAP. For your first steps you may try out some RAP Examples and/or write a Hello World Application.

Alternative: Install Target Manually

You can also install a target manually, e.g. if you want to develop against a different version of RAP or combine RAP with other bundles. To select a target platform you can either use the Target Platform preferences page (Window > Preferences > Plug-in Development > Target Platform) or create a target definition file. The latter is preferable, as target definition files can be checked in into your source code repository and shared among team members.

  1. First, you may want to create a project to host your target definition files. A plain project will do (File > New > General > Project).
  2. In this new project, create a new target definition: New > Plug-In Development > Target Definition. Chose a name like and press Finish.
  3. The target editor will open and show the contents of this target definition. Now, you must add the RAP runtime from a p2 repository ("software site"). Press Add, select Software Site. You'll be confronted with another dialog, named Add Software Site.
  4. Again press Add and enter the URL of the RAP runtime repository. You find these URLs on the RAP download page, e.g.
    • for RAP 1.5:
    • for RAP 2.0:
    Hint: You can also install the RAP runtime directly from a download zip archive. In this case, press Archiveā€¦ and select the zip file.
  5. For a basic RAP target, select the category Remote Application Platform (RAP). This category contains two features: The RAP runtime itself (RAP Runtime Target Components), and a set of Eclipse bundles needed for a basic RAP target (RAP Basic Equinox Target).
  6. Activate the target platform by clicking the link Set as Target Platform in the upper right corner of the target definition editor.