青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

逛奔的蝸牛

我不聰明,但我會很努力

   ::  :: 新隨筆 ::  ::  :: 管理 ::

Drools on Windows (Part 2 of 22) - Installation

1. 安裝JDK

2. 安裝Eclipse

3. 下載安裝Eclipse的Drools插件: Drools 5.0 Eclipse 3.4 Workbench

4. 下載Drools的運行時環境: Drools 5.0 Binaries

5. 啟動Eclipse, 先設置Drools的運行時環境為Drools-5.0-bin/lib 目錄

6. 創建Drools project: DroolsApp1, 全用默認設置

7. 把在Drools-5.0-bin下面的其他jar文件加到入工程DroolsApp1的Build Path里.

8. 編譯運行DroolsApp1, 如果成功, 會在操控臺輸出:

Hello World

Goodbye cruel world


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

下面是具體安裝信息:

Setup of a Drools development environment is fairly straightforward.  (For a Java app.) For this exercise, I'm going to kick open Microsoft Virtual PC 2007, and start with a new instance of Windows XP Pro SP3. 

First, install Java.  Go to the Get Java link, and install the latest version, which at the time of this writing is Version 6 Update 12.  Depending on your browser settings, you might have to download the file (jxpiinstall-6u12-fcs-bin-b04-windows-i586-17_jan_2009.exe) and run it locally.  Whatever.  The point is to step out and get Java on your machine.

Second, install the Eclipse IDE for Java EE Developers.  It's 163Mb, and I must say a very nice and robust IDE.  It has several nifty features that I wish Visual Studio had. 

Here's something of a surprise.  It's an xcopy deployment.  You download the file, unzip it, and copy it to where you want it to run.  I created a C:\Program Files\Eclipse directory, and placed it there.  I also create a Desktop shortcut and also pin the shortcut to the Start menu. 

The first time you run Eclipse, it asks you to designate a workspace. The workspace is your projects folder.  Then you get the welcome page.  There is an Overview, What's New, Samples, Tutorials, and the Workbench.  The Workbench is, unsurprisingly, where you do the work.

Next, time to get a rules engine.

Drools is part of the jboss 'galaxy of applications'.  jboss is probably most famous for their Application Server, which I hear is quite popular in some development communities.  jboss is a division of Red Hat, and you can see a nice graphical overview of their many projects here.    But I don't need all that stuff, of course, I'm just interested in the free rules engine.  I should note that you can get enterprise-level support agreements from Red Hat for Drools.

Navigate to the Drools download page, and you'll see a few versions of Drools there.  I'm going to download 5.0.0.M5, or Version 5 Milestone 5, and use that.  There are nine files available; I just download them all.  Broadband is awesome.

From drools-5.0.0.M5-eclipse-all, take the four files from the plugins subdirectory, and copy them to the Eclipse plugins folder.  Mine is at C:\Program Files\Eclipse\plugins\.

Next from drools-5.0.0.M5-eclipse-all, take the three subdirectories under features and copy them to the Eclipse features folder.  For me that's C:\Program Files\Eclipse\features\.

Then restart Eclipse, and go to the Workbench.  Right-click in the Project Explorer, and select New... Project.  You'll get a wizard, with the first dialog being a listing of all the possible project types, and Drools should be listed, as below:

Eclipse New Project Wizard

Select the Drools Project type.  Click Next.  Type in a Project name; I used DroolsApp1.  Next.  Next.  Ah, here we are at the Drools Runtime dialog.

There's No Drools Runtime Like My Drools Runtime.

The Drools Runtime can be defined as: the set of jar files necessary to run Drools. Straightforward, right?  Eh, in a word, no.  There are numerous ways you can assemble this set of files, depending on how you intend to configure your production deployment and the specific set of functionality you intend to provide your users.  For example, if you are never going to allow your users to load in rules from Excel spreadsheets, then you don't need jxl-2.4.2. If you are only going to be using the DRL to define rules, and you won't be storing rules in Xml files, then you don't need xml-apis-1.0.b2.  Yeah, baby, that's the love in Javaland.  It's all up to you.  These dependencies are outlined in the README_DEPENDENCIES.txt file.

What I recommend for this exercise is simple, however. 

Go back to the files we downloaded from jboss.org.  We'll be using drools-5.0.0.M5-bin.zip.  Extract that, and place it somewhere on the file system.  I put it at C:\drools-5.0.0.M5-bin\.

Take all the files in C:\drools-5.0.0.M5-bin\lib\*.* and copy them up to C:\drools-5.0.0.M5-bin\*.*.  That'll work for now.

Back to the show...
The first time you create a Drools project in Eclipse, it asks where the Drools runtime is located.  You'll need to provide that. 

In the project wizard, click on the Configure Workspace Settings... link.  It will open the Eclipse preferences pane where you specify the location of the Drools runtime.  You can actually have a listing of multiple runtimes, and select different ones for different projects.  I just have the one runtime.  I name it Drools M5 Runtime and browse to C:\drools-5.0.0.M5-bin.  Check the box.  Finish out of the wizard.

And voila.  You should have DroolsApp1 in your Eclipse Project Explorer. It should look like this:

 Eclipse Package Explorer

Run it by hitting Ctrl+F11, or click the little green right arrow. If it asks, run it as a Java Application.  Or you could click Alt+Shift+X, then J.  Seriously. 

You should see the output in the Console pane at the bottom of your IDE.  If it says "Hello World {CR}{LF} Goodbye cruel world" then congratulations. You are now a rules engine developer.  Immediately raise your rate by 9.35%.

Next post will take a closer look at the elements of this sample app, and postulate how the overall enterprise might look.

Link for future reference: Drools home page.

From: http://theruntime.com/blogs/danastevens/archive/2009/02/21/drools-on-windows-part-2-of-22---installation.aspx
posted on 2010-04-23 15:10 逛奔的蝸牛 閱讀(1636) 評論(0)  編輯 收藏 引用 所屬分類: Java
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产精品国产三级国产aⅴ入口| 先锋影音久久久| 欧美久久99| 亚洲一线二线三线久久久| 亚洲人成毛片在线播放| 欧美另类一区二区三区| 亚洲五月六月| 亚洲一区欧美一区| 伊甸园精品99久久久久久| 欧美高清视频一区二区三区在线观看| 老司机午夜精品| 中文av一区特黄| 小嫩嫩精品导航| 在线欧美日韩| 99国产精品私拍| 国产专区欧美专区| 欧美激情综合色| 国产精品久久久久永久免费观看| 久久精彩免费视频| 欧美α欧美αv大片| 亚洲男人影院| 久久久久综合网| 亚洲一区二区免费视频| 久久国产视频网站| 一区二区精品在线| 久久精品二区三区| 在线综合亚洲欧美在线视频| 亚洲欧美自拍偷拍| 9色porny自拍视频一区二区| 欧美一区二区三区久久精品茉莉花| 欧美一区二区三区在线| 亚洲精选国产| 久久不射中文字幕| 亚洲桃色在线一区| 欧美成年视频| 久久免费视频在线| 国产精品九九久久久久久久| 欧美激情视频网站| 国产小视频国产精品| 一本色道久久综合亚洲精品按摩 | 欧美一区2区视频在线观看| 影音先锋在线一区| 亚洲欧美在线一区二区| 一卡二卡3卡四卡高清精品视频| 久久精品国产亚洲5555| 亚洲一区二区三区乱码aⅴ| 蜜臀99久久精品久久久久久软件| 亚洲欧美日韩视频二区| 欧美成人免费va影院高清| 久久精品一区四区| 国产精品亚洲综合久久| 99精品欧美| 一区二区精品在线| 欧美连裤袜在线视频| 欧美粗暴jizz性欧美20| 韩日视频一区| 亚洲综合欧美日韩| 性色av一区二区怡红| 欧美日韩中文在线观看| 亚洲娇小video精品| 91久久久精品| 欧美成人在线免费观看| 欧美国产高清| 亚洲精品日日夜夜| 女女同性精品视频| 亚洲国产精品一区二区第四页av| 亚洲国产精品成人| 老鸭窝毛片一区二区三区| 免费永久网站黄欧美| 极品av少妇一区二区| 亚洲成人在线视频播放 | 国产精品久久网| 一本大道久久a久久综合婷婷| 9色国产精品| 国产精品v欧美精品v日韩| 一区二区三区欧美在线观看| 一区二区欧美视频| 国产精品免费福利| 久久av一区二区三区漫画| 另类成人小视频在线| 亚洲国产日韩欧美在线图片| 欧美精品 日韩| 久久精品视频在线播放| 国语自产在线不卡| 久久中文字幕一区| 91久久夜色精品国产网站| 中国亚洲黄色| 国产色婷婷国产综合在线理论片a| 性18欧美另类| 欧美激情亚洲另类| 亚洲一区二区三区在线视频| 国产日本欧美一区二区| 久久只精品国产| 亚洲人成人99网站| 久久国产精彩视频| 亚洲精品久久久蜜桃| 国产精品国产三级国产aⅴ无密码| 香港久久久电影| 亚洲国产高清视频| 午夜亚洲视频| 91久久久久久久久| 国产精品一区二区视频| 美女主播一区| 亚洲永久在线| 91久久精品日日躁夜夜躁欧美| 亚洲欧美国产毛片在线| 亚洲成色777777在线观看影院| 欧美三级网址| 久久中文在线| 亚洲综合色视频| 亚洲国产天堂久久综合网| 性欧美激情精品| 亚洲精品自在在线观看| 国产在线观看一区| 欧美日韩大片一区二区三区| 欧美在线观看网址综合| 一区二区免费看| 欧美激情国产精品| 久久成人免费电影| 中文精品99久久国产香蕉| 一区二区三区在线高清| 国产精品日韩欧美综合| 欧美伦理在线观看| 狂野欧美激情性xxxx| 欧美在线你懂的| 亚洲一区二区三区乱码aⅴ蜜桃女| 亚洲国产黄色片| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲欧美国产视频| 国产精品99久久不卡二区| 亚洲狼人精品一区二区三区| 在线免费精品视频| 黄色国产精品一区二区三区| 国产乱码精品1区2区3区| 国产精品大片wwwwww| 欧美激情亚洲视频| 欧美成人综合| 欧美插天视频在线播放| 久久久综合香蕉尹人综合网| 久久不射中文字幕| 久久国产毛片| 久久久综合激的五月天| 久久精品久久99精品久久| 久久精品99久久香蕉国产色戒| 午夜一区二区三视频在线观看 | 欧美激情视频网站| 欧美成人午夜影院| 欧美二区在线观看| 亚洲高清久久| 亚洲精品在线观| 夜夜躁日日躁狠狠久久88av| 99热精品在线观看| 亚洲婷婷在线| 午夜一级久久| 久久久久久久久久久久久女国产乱| 久久精品成人一区二区三区| 久久久久女教师免费一区| 狼人社综合社区| 欧美巨乳在线观看| 国产精品美女诱惑| 国产在线不卡精品| 亚洲欧洲一级| 亚洲一级高清| 久久久亚洲人| 亚洲国内精品在线| 亚洲网站视频| 久久久久久高潮国产精品视| 蜜臀av一级做a爰片久久 | 久久激情综合| 麻豆av一区二区三区久久| 欧美精品三级在线观看| 国产精品精品视频| 在线观看日韩av先锋影音电影院| 亚洲激情社区| 午夜国产精品影院在线观看| 久久亚洲国产精品日日av夜夜| 亚洲大胆人体在线| 一区二区免费在线视频| 久久久国产成人精品| 欧美日韩精品综合在线| 国产午夜精品福利| aa级大片欧美三级| 久久久久久自在自线| 亚洲精品欧美激情| 久久成人资源| 欧美日韩一区二区免费视频| 黄色成人91| 亚洲制服av| 亚洲第一久久影院| 亚洲欧美在线播放| 欧美日本网站| 亚洲福利视频二区| 欧美一区二区三区精品电影| 欧美激情免费观看| 久久aⅴ国产欧美74aaa| 欧美三级电影大全| 亚洲精品一区在线| 免费看亚洲片| 欧美在线免费观看视频| 国产精品美女久久久久久久|