![Drools Tutorial](/drools/images/drools-mini-logo.jpg)
- Drools Tutorial
- Drools - Home
- Drools - Introduction
- Drools - Eclipse Plugin
- Drools - Runtime
- Drools - Create A Drools Program
- Drools - Frequently Used Terms
- Drools - Rules Writing
- Drools - Rules Syntax
- Drools - Sample Drools Program
- Drools - Debugging
- Drools Useful Resources
- Drools - Quick Guide
- Drools - Useful Resources
- Drools - Discussion
Drools - Create a Drools Program
To create a basic Drools program, open Eclipse. Go to Fileb → New → Project.
![Basic Drools Program](/drools/images/basic_drools_program.jpg)
Select Drools Project. Give a suitable name for the project. For example, DroolsTest.
The next screen prompts you to select some files which you want in your first Drools project.
![New Drools Project](/drools/images/new_drools_project.jpg)
Select the first two files. The first file is a .drl file (Drools Rule File) and the second file is a Java class for loading and executing the HelloWorld rule.
Click on Next → Finish.
![Select Drools Runtime](/drools/images/select_drools_runtime.jpg)
Once you click on Finish, a <DroolsTest> project is created in your workspace. Open the Java class and then right-click and run as Java application. You would see the output as shown here −
![Result](/drools/images/result.jpg)
Next, we will discuss the terms frequently used in a Rule Engine.
Advertisements