RAP applications need to be compiled against the RAP Runtime SDK. To
do so, the SDK needs to be set as the target platform in Eclipse.
This can either be done by the RAP
Tooling or manually.
- Open Window > Preferences and go to the Plug-in
Development > Target Platform preference page.
- Add a new target definition and initialize it with "nothing".
- On the next page, click Add, choose Software Site
- On the following page, enter the RAP repository
(http://download.eclipse.org/rt/rap/1.2/runtime-update) in the
Work with field and press enter.
- Select target to install from the list below.
- Make sure the checkbox Include required software is not
checked.
- Click Finish. After the download is completed, click Finish
again to save the new target definition.
- Activate the new target on the target platform preference page.
Note: if doing this with a workspace that already contains projects that
depend on the target, you may get compile errors. Restarting Eclipse and/or
doing a clean build will help.