一、     环境准备工作

1、          安装java 环境,本文用:jdk-6u4-windows-i586-p.exe

2  下载eclispeeclipse-java-helios-SR2-win32

  3.、 下载GEFGEF-SDK-3.6.2GEF安装比较简单,把对应的文件夹拷贝到相应目录就行了。

二、下载Drools

1、下载:drools-5.1.1-bin截止本文创造时间2011-4-18drools-5.2.0.M1-bin版本中尚未加入JBPM的相关文件,直接用M1版本会抛出“异常的爱”,所以建议都下载5.1.1版本。

2、下载:drools-5.2.0.M1-eclipse-all

3Drools的其它下载,如doc,examplesplanner等按各自需求下载,建议都下载下来,如果你打算全面了解Drools的话。

三、安装drools插件

这个安装有点麻烦,不像GEF那么简单,直接拷贝文件夹就行,步骤如下:

解压drools-5.2.0.M1-eclipse-all.zip,在目录找到ReadMeDroolsEclipse.txt,打开内容如下:

  

Welcome to Drools Eclipse

=========================

 

Introduction

------------

 

Drools Eclipse bundles the drools plugins for eclipse.

This zip is useful if you don't want to or can't use the online update site.

 

Installing the plugins in Eclipse

---------------------------------

 

- Unzip the drools-update-site directory to a local directory

- Open Eclipse.

- Open the menu "Help", menu item "Install new software..."

- Click on the button "Add..." to add a new software site.

- Fill in the name "drools local update site"

- Click on the button "Local..." and select ".../drools-update-site"

- Select all the plugins. Click the buttons "Next" and "Finish".

 

根据上面的方法逐步安装就行。

注意:据我观察,这种安装方法并不能做到完全local,它还是要到网上下载,具体下载什么,我不知道,所以最好不要断网。

四、安装Drools Runtimes

A Drools runtime is a collection of jars on your file system that represent one specific release of the Drools project jars. 

会关注drools的人,应该不难理解这个,就是Drools项目在编译,运行时需要的jar集合。

1、打开首选项( in the menu Window select the Preferences menu item

2select  "Installed Drools runtimes".


3、点击“add

4、选择bin所在的目录,如下图:

 

五、The first project of Drools.

这个很简单,打开eclipse, new一个Drools Project,一路默认,即可得一个标准的示例工程,


 

运行得:

成功结束。