• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Drools Installation

In this tutorial, we will go over Drools Installation step by step.

Drools provides an Eclipse-based IDE (which is optional), but at its core only Java 1.5 (Java SE) is required.

A simple way to get started is to download and install the Eclipse plug-in – this will also require the Eclipse GEF framework to be installed (see below, if you don’t have it installed already). This will provide you with all the dependencies you need to get going: you can simply create a new rule project and everything will be done for you. Refer to the chapter on the Rule Workbench and IDE for detailed instructions on this. Installing the Eclipse plug-in is generally as simple as unzipping a file into your Eclipse plug-in directory.

Use of the Eclipse plug-in is not required. Rule files are just textual input (or spreadsheets as the case may be) and the IDE (also known as the Rule Workbench) is just a convenience. People have integrated the rule engine in many ways, there is no “one size fits all”.

Download and install Eclipse IDE.

Install the GEF Plugin for Eclipse:

-Run Eclipse IDE.

-Select Help > Install New Software….

-In the Work with: combo box type: http://download.eclipse.org/tools/gef/updates/releases/

-Select “Graphical Editing Framework GEF”.

Capture.623

At TekSlate, we offer resources that help you in learning various IT courses. We avail both written
 material and demo video tutorials. To gain in-depth knowledge and be on par with practical
 experience, then explore Drools Training Videos.

Install Drools:

-Select Help > Install New Software….

-In the Work with: combo box type: http://download.jboss.org/drools/release/6.1.0.Final/org.drools.updatesite/

-Select all.

Capture.624

Make sure the checkbox “Contact all update sites during install to find required software” is checked.

Create Drools Runtime:

-In Eclipse switch to the Drools perspective (upper right corner).

-Select File > New > Drools project.

-Choose a name and click “Next”.

Capture.625

Click “Next”.

Capture.626

Check out the top Drools Interview Questions now!

Click “Configure Workspace Settings…”.

Capture.627

Click “Add…”.

Capture.628

Click “Create a new Drools 6 Runtime…” and choose a directory to create the Drools Runtime.

Capture.629

Select the created Drools Runtime and click “OK”.

Capture.630

Enter a GroupId, an ArtifactId, and a Version for your project. You may choose arbitrary non-empty values. Afterwards, click “Finish” to create the project.

Capture.631

  • Open the class that contains the main method. It is located in the package com.sample and has the same name as the project.
  • In order to execute the project, right-click the editor and selectDebug As > Drools Application. Observe the output. You can ignore the SLF4J warnings.

For an Indepth knowledge on Drools click on below:

Summary
Review Date
Reviewed Item
Drools installation
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Drools Installation"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.