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

逛奔的蝸牛

我不聰明,但我會很努力

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

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>
            久久天天躁狠狠躁夜夜av| 国产精品每日更新在线播放网址| 亚洲一级黄色片| 裸体素人女欧美日韩| 欧美一级在线视频| 欧美视频亚洲视频| 最新国产の精品合集bt伙计| 极品尤物av久久免费看 | 玖玖国产精品视频| 国产精品美女999| 99re6这里只有精品| 亚洲日本中文字幕| 欧美 日韩 国产在线| 久久免费国产| 国产在线播放一区二区三区| 亚洲欧美日韩在线播放| 亚洲视频精选| 欧美性猛交99久久久久99按摩| 亚洲第一伊人| 亚洲免费观看高清完整版在线观看| 久久久久久久尹人综合网亚洲| 久久久亚洲国产天美传媒修理工| 国产精品日韩精品欧美精品| 亚洲视频综合| 欧美亚洲一区三区| 国产手机视频精品| 欧美在线3区| 麻豆av一区二区三区| 在线观看一区二区视频| 久久久av网站| 亚洲第一二三四五区| 亚洲精品黄色| 国产精品va| 亚洲欧美变态国产另类| 欧美一区二区视频在线| 国产色爱av资源综合区| 久久久久九九九| 亚洲高清免费视频| 在线一区亚洲| 国产毛片一区二区| 久久精品国产免费| 亚洲国产成人91精品| 中文精品视频一区二区在线观看| 国产精品国产a级| 久久成人在线| 亚洲国产精品成人精品| 亚洲天堂av在线免费| 国产精品婷婷午夜在线观看| 欧美怡红院视频| 亚洲国产日韩欧美在线99| 在线一区二区三区四区| 国产精品嫩草99av在线| 久久国产精品亚洲77777| 亚洲第一精品影视| 亚洲影院一区| 1024精品一区二区三区| 欧美日韩国产大片| 久久成人综合视频| 亚洲破处大片| 久久精品一区二区国产| 99精品国产福利在线观看免费 | 欧美另类高清视频在线| 亚洲欧美成人精品| 欧美激情成人在线视频| 午夜国产精品视频| 亚洲黑丝在线| 国产一区二区三区成人欧美日韩在线观看 | 美女爽到呻吟久久久久| 国产精品99久久久久久有的能看 | 亚洲精品精选| 久久在线免费| 亚洲欧美在线另类| 亚洲毛片一区二区| 韩国av一区二区三区在线观看| 欧美精品v日韩精品v国产精品 | 国产欧美一级| 欧美激情网站在线观看| 欧美在线播放一区二区| 亚洲精选视频免费看| 免费不卡在线观看| 久久爱另类一区二区小说| 99精品免费网| 亚洲国产精品尤物yw在线观看 | 曰韩精品一区二区| 国产女主播一区二区三区| 欧美日韩网站| 欧美精品日韩精品| 毛片基地黄久久久久久天堂| 午夜精品www| 亚洲一区二区三区激情| 亚洲久久一区| 亚洲人成亚洲人成在线观看| 欧美成人官网二区| 母乳一区在线观看| 久久躁狠狠躁夜夜爽| 欧美有码在线视频| 欧美一区二区观看视频| 亚洲欧美日韩人成在线播放| 亚洲性视频网站| 亚洲一区二区三区久久| 宅男噜噜噜66一区二区66| 亚洲精品在线免费观看视频| 91久久精品一区二区别| 亚洲国产免费看| 亚洲精品国产精品国产自| 亚洲欧洲精品一区二区三区不卡| 亚洲福利视频一区二区| 亚洲高清一二三区| 亚洲精品一区在线观看香蕉| 亚洲大胆女人| 91久久精品国产91性色tv| 亚洲国产黄色| 亚洲精品美女在线观看| 99re热精品| 亚洲一区二区三区乱码aⅴ蜜桃女 亚洲一区二区三区乱码aⅴ | 伊人精品久久久久7777| 国产亚洲精品久久久久久| 国外精品视频| 亚洲电影在线观看| 亚洲欧洲在线一区| 9久re热视频在线精品| 一区二区三区精品视频在线观看| 99视频超级精品| 亚洲一区二区三区欧美| 欧美一区二区三区日韩| 久久精品夜色噜噜亚洲aⅴ| 麻豆精品在线视频| 91久久国产精品91久久性色| 日韩一级黄色av| 西西人体一区二区| 久久亚洲精品一区| 欧美人成免费网站| 国产精品久久久久久亚洲调教| 国产三级精品三级| 亚洲人成在线播放| 性欧美在线看片a免费观看| 久久久久久9| 亚洲国产专区| 亚洲欧美电影院| 麻豆乱码国产一区二区三区| 欧美四级在线观看| 一区二区三区在线观看国产| 日韩视频一区二区三区| 欧美在线欧美在线| 亚洲丰满少妇videoshd| 亚洲综合第一| 欧美激情一区二区| 国产亚洲精品bt天堂精选| 亚洲区免费影片| 久久精品国产亚洲5555| 91久久国产自产拍夜夜嗨| 亚洲欧美在线x视频| 欧美大片免费观看| 国产日产欧美a一级在线| 亚洲乱码久久| 久久久久国产精品午夜一区| 亚洲精品一区二区网址 | 欧美激情在线| 国产欧美一区二区三区在线看蜜臀| 国产日韩精品一区二区| av成人天堂| 欧美a级一区二区| 亚洲午夜国产一区99re久久| 蜜桃久久精品一区二区| 国产日韩欧美三区| 亚洲视频axxx| 亚洲国产精品久久久久婷婷884| 亚洲综合社区| 欧美日韩亚洲激情| 亚洲乱码久久| 欧美激情精品久久久久久大尺度| 欧美日韩精选| 亚洲九九精品| 欧美激情精品久久久久久免费印度| 欧美一区二区三区播放老司机| 欧美日韩综合精品| 亚洲巨乳在线| 亚洲国产天堂久久国产91| 久久国产精品久久国产精品 | 欧美午夜精品理论片a级大开眼界| 在线欧美亚洲| 老色鬼精品视频在线观看播放| 亚洲一区二区少妇| 国产精品美女久久久免费| 亚洲调教视频在线观看| 日韩写真在线| 欧美日韩免费在线| 99在线精品观看| 亚洲免费观看高清完整版在线观看熊| 免费在线观看精品| 亚洲黄色免费网站| 亚洲成人在线网| 欧美国产高潮xxxx1819| 亚洲美女av电影| 亚洲精品国产精品乱码不99按摩 | 另类天堂视频在线观看| 在线免费观看成人网| 美女国产精品| 免费在线播放第一区高清av| 亚洲九九九在线观看|