Drools installation and configuration learning notes
1. download the latest drools-related components
Required (Drools runtime environment, drools eclipse plug-in)
Http://download.jboss.org/drools/release/5.0.1.26597.FINAL/drools-5.0-bin.zip
Http://download.jboss.org/drools/release/5.0.1.26597.FINAL/drools-5.0-eclipse-all.zip
Optional (document, source code, example, solver, guvnor)
Http://www.jboss.org/drools/downloads.html
2. Decompress drools-5.0-bin.zip to any directory, for example, C :/
3. Decompress drools-5.0-eclipse-all.zip to the eclipse installation directory.
4. Start eclipse and check whether the toolbar has the drools icon. If so, the installation is normal. Otherwise, choose windows> open perspective> other> drools. If not, delete the eclipse/configuration/org. eclipse. update directory and restart eclipse.
5. Configure the drools Runtime environment to point to the drools-5.0-bin directory.
6. Click the menu-> File-> new-> drools project, enter the name of the created drools project, and click next to select all options. Drools automatically creates the rule file and test case. The result is as follows:
7. Run DroolsTest. java to view the result defined based on the Rule file sample. drl.
8. You can download drools-5.0-example, decompress the package, and import it to Eclipse to view more examples.
Note:: The downloaded drools version must match the Eclipse version. The version used in this case is Eclipse 3.4.0.