Setting up the xRules sample
To run the xRules sample, you must import the sample project into your Eclipse workspace.
About this task
You import xRules into Eclipse, and configure Eclipse to run the sample application. The source code for the application is in the samples/com.ibm.rules.sdk.samples.documentrules directory.
Procedure
- Start Eclipse.
- Click .
- Select , and click Next
- In Import Projects, browse to <InstallDir>/rules-sdk/samples/com.ibm.rules.sdk.samples.documentrules
- Select com.ibm.rules.sdk.samples.documentrules, and click Finish to load the project. After you load the project, the Problems view lists several errors. You must add Business Rules Embedded runtime plug-ins to compile the application.
- Click .
- Select , and click Edit
- In Target Content, click Add, select Directory, and click Next.
- Browse to <InstallDir>/rules-sdk/lib/osgi, and click Finish to add new plug-ins to the target platform.
- Click Finish in Target Content, and OK in Preferences After Eclipse builds the project, the Problems view is empty. In the event that errors persist, clean and rebuild the project.
- Expand com.ibm.rules.sdk.samples.documentrules in Package Explorer.
- Double-click plugin.xml.
- In Overview, under Testing, click Launch an Eclipse application.