Drools Installation

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

Drools enable an Eclipse-based IDE, however at its core, just Java 1.5 (Java SE) is required.

A simple way to begin is to download and install the Eclipse plug-in. It also requires the Eclipse GEF framework to be installed. This enables all the dependencies to create a new rule project usually. Installing the Eclipse plug-in requires just unzipping a file into Eclipse plug-in directory.

Use of the Eclipse plug-in is not necessarily required. Rule files are usually a textual input, and the IDE is another convenience. Rule engine can be integrated into various ways, and 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.
  • To execute the project, right-click the editor and selectDebug As > Drools Application. Observe the output. You can ignore the SLF4J warnings.

For an In-depth knowledge on Drools click on below:

“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 *

    Support


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

    3 + 5