Drools installation and configuration learning notes

Source: Internet
Author: User
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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.