1.1. Pre-conditions
Drools is a Java-based open source rule engine, so you need to install the JDK environment on your development machine before using drools, DROOLS5 requires a JDK version of 1.5 or more.
1.2. Development environment Construction
The first step in most software learning is to build the development environment for the software, and Drools is no exception. This section describes how to build a Drools5 development, operation, debugging environment.
First, download the two zip package in the red border of the image by Drools 5.5.0Final version below. http://download.jboss.org/drools/release/5.5.0.Final/
1.3. Installing the Drools IDE
Open the Dropins directory in the directory where Eclipse3.7 is located, and in this directory, sequentially build the Drools folder and the Eclipse folder, as shown in:
Unzip the Droolsjbpm-tools-distribution-5.5.0.final.zip file and enter into the droolsjbpm-tools-distribution-5.5.0.final\binaries\ Org.drools.updatesite directory, copy the features folder and plugins folder to the Eclipse installation directory/dropins/drools/eclipse/directory, as shown in:
Install all of the drools5.5 plug-in files into eclipse, then restart Eclipse 3.7 under Win DOS to verify that the Drools5.5 is installed successfully.
Set the Eclipse startup properties as shown in:
Open the windowàpreferences in turn, and when shown, the Drools5.5 installation is successful;
After the IDE installation is complete, the next step is to make a simple configuration of the DROOLS5.5 IDE environment, open the window-> references in turn, and select the left navigation tree menu in the popup window Drools soundly installed Droolsruntimes set the SDK for Drools5.5 IDE runtime dependencies, click the "Add ..." button to add a development kit with path set to Drools-distribution-5.5.0.final\binaries, As shown in.
After clicking "OK", you are prompted to restart Eclipse.
After restarting, the new project displays the following interface:
Open the Drools view as follows: