Eclipse安装Drools5.5.0.Final插件

1. 下载drools相关的组件

进入http://download.jboss.org/drools/release/5.5.0.Final/ 去下载两个文件

-下载并解压Drools:drools-distribution-5.5.0.Final.zip (解压目录随意)
-下载并解压插件:droolsjbpm-tools-distribution-5.5.0.Final.zip(解压目录随意)

2. Eclipse中配置

1)插件安装:

    启动 Eclipse ,打开 Help > Install New Software... > Add... ,分别如下输入

    Name: Drools5.5 Plugin

    Location: (点击右边Archive...,指定droolsjbpm-tools解压后目录droolsjbpm-tools-distribution-5.5.0.Final/binaries/org.drools.updatesite/)

如下图


选择“Select All" 点击Next 直到finish.

2)添加Drools的运行环境:

    打开点击"Windows"—"Preferencess",在窗口的树形菜单中选择"Drools"—"Installed Drools Runtimes",在右边的空的Drools运行库列表中,点击"Add..."。在弹出窗口中name输入Drools5.5(随意起个名字),在Path选择"D:\programs\drools-distribution-5.5.0.Final\binaries" (此目录在刚刚解压的Drools中),点击"OK"。

3.重新启动eclipse,查看工具栏是否有drools的图标,如果有则说明安装正常。否则,打开菜单->windows->open perspective->other->drools。如果perspective当中也没有,请删除eclipse/configuration/org.eclipse.update目录,再重启eclipse

4.创建drools项目:点击菜单->File->new->drools project,输入创建drools项目的名称,点击next选中所有的选项。Drools会自动创建rule文件和测试用例。

5.运行DroolsTest.java,就可以看到基于规则文件sample.drl定义的结果

6.可以下载drools-5.5-example,解压缩后导入Eclipse中查看更多示例

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Welcome to Drools ================= Third party jars ---------------- Following third party jars are optional and are not included in Drools distribution: 1.Quartz: Quartz is an optional jar only needed if you wish to adapt existing quartz calendars. It can be downloaded from http://www.quartz-scheduler.org/. Run the examples ---------------- It's easy to run the examples: On Linux, Mac or Cygwin: examples/runExamples.sh On Windows: examples\runExamples.bat Run the examples in Eclipse --------------------------- Open Eclipse, install the Drools plugin, as described in the introduction reference manual. Open menu Window, menu item Preferences, tree item Drools, tree item Installed Drools Runtime environments Add the dir "binaries/" from the zip as a new Drools Runtime Environment. Activate the checkbox of that newly created runtime environment. Restart eclipse. Open menu File, menu item Import..., tree item General, tree item Existing Projects into Workspace, button Next and select root directory "examples/sources/" from the zip, button Finish. Alternatively, if you have the m2eclipse plugin installed: Open menu File, menu item Import, tree item Maven, tree item Existing Maven Projects, button Next and select "examples/sources/" from the zip, button Finish. Open menu Run, menu item Run configurations, add new Java Application with main class "org.drools.examples.DroolsExamplesApp" and VM arguments "-Xms256m -Xmx512m -server", click button Run. Run the examples in IntelliJ ---------------------------- Open menu File, menu item Open project, select "examples/sources/pom.xml". Open menu Run, menu item Edit Configurations, add a new Application with main class "org.drools.examples.DroolsExamplesApp" and VM parameters "-Xms256m -Xmx512m -server" and run that. Read the reference manual ------------------------- To see the reference_manual, just open: reference_manual/html_single/index.html It contains information how to use it on your project (wi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值