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

逛奔的蝸牛

我不聰明,但我會很努力

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

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 逛奔的蝸牛 閱讀(1632) 評論(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>
            国产在线观看一区| 国内精品一区二区| 99在线热播精品免费| 欧美成人按摩| 免费视频亚洲| 一个色综合av| 亚洲一区二区av电影| 国产亚洲精品久久久久久| 久久免费精品视频| 欧美电影免费观看| 亚洲欧美久久久| 欧美一级久久久| 亚洲黄色大片| 亚洲视屏在线播放| 激情久久综合| 99xxxx成人网| 国产在线成人| 亚洲精选中文字幕| 国产一二精品视频| 欧美激情精品久久久久久变态| 欧美日韩和欧美的一区二区| 欧美一级理论性理论a| 久久阴道视频| 亚洲欧美日韩综合aⅴ视频| 久久久久久久久久码影片| 一区二区黄色| 久久国产综合精品| 亚洲性线免费观看视频成熟| 久久精品一二三| 亚洲一区999| 麻豆乱码国产一区二区三区| 亚洲综合色激情五月| 免费在线亚洲欧美| 久久九九国产精品| 国产精品久久二区| 亚洲第一网站免费视频| 国产女优一区| 日韩视频永久免费观看| 1769国内精品视频在线播放| 亚洲影院免费| 亚洲少妇诱惑| 欧美国产亚洲另类动漫| 久久一区二区视频| 国产精品一区二区久久精品 | 国产欧美日韩在线| 亚洲精品美女久久久久| 在线观看一区| 羞羞答答国产精品www一本| 在线午夜精品| 欧美极品欧美精品欧美视频| 免费日韩视频| 黄色影院成人| 久久福利一区| 久久精品国产一区二区电影| 久久精品国产综合| 国产精品久久久久久久午夜片| 欧美激情精品久久久久久黑人| 狠狠色丁香久久婷婷综合_中| 午夜天堂精品久久久久| 亚洲欧美日韩国产一区二区三区 | 欧美日韩免费在线视频| 欧美成人免费一级人片100| 精品av久久707| 久久国产精品99精品国产| 欧美一区二区三区在线观看| 国产精品无码永久免费888| 在线视频中文亚洲| 亚洲欧美日韩国产成人精品影院| 欧美日韩在线观看一区二区| 日韩一区二区电影网| 亚洲一级影院| 国产欧美精品日韩区二区麻豆天美 | 国产精品欧美日韩| 亚洲欧美99| 久久久久国产一区二区| 一色屋精品视频在线观看网站| 久久精品国产2020观看福利| 久久亚裔精品欧美| 亚洲激情成人| 欧美三级网址| 午夜久久电影网| 狂野欧美一区| 日韩性生活视频| 久久精品国内一区二区三区| 久久久久久久成人| 亚洲精品少妇| 午夜精彩视频在线观看不卡 | 久久久免费精品视频| 国内精品久久久久久久影视麻豆| 久久免费国产精品| 亚洲人成在线观看一区二区| 亚洲一区久久| 海角社区69精品视频| 欧美成人精品在线播放| 一区二区三区四区五区精品| 久久久999精品免费| 亚洲激情欧美| 国产精品美腿一区在线看| 久久精品国产精品亚洲综合| 亚洲国产成人久久综合一区| 亚洲综合日韩中文字幕v在线| 国语自产精品视频在线看8查询8| 欧美激情精品久久久久久久变态| 亚洲小说欧美另类婷婷| 欧美成人午夜激情视频| 午夜精品理论片| 亚洲日本成人| 国产一区二区丝袜高跟鞋图片| 欧美激情精品久久久久久久变态| 午夜一区在线| 99国内精品久久| 男人天堂欧美日韩| 久久精品99国产精品酒店日本| 亚洲毛片av在线| 国内精品国产成人| 欧美午夜激情小视频| 蜜桃av一区二区| 欧美一区视频| 亚洲性线免费观看视频成熟| 亚洲电影专区| 久久综合久久美利坚合众国| 亚洲欧美综合v| 一区二区日韩免费看| 亚洲国产成人在线播放| 国语自产在线不卡| 国产区在线观看成人精品| 欧美日韩亚洲高清| 欧美精品成人| 欧美国产亚洲视频| 免费日韩av| 免费av成人在线| 久久久久一区二区三区| 欧美一区二区私人影院日本| 亚洲自拍偷拍一区| 亚洲一二区在线| 亚洲天堂成人在线视频| 亚洲精品在线观| 亚洲精品国产视频| 亚洲激情综合| 亚洲激情婷婷| 亚洲美洲欧洲综合国产一区| 亚洲精品欧美极品| 亚洲日本va午夜在线电影| 亚洲人成小说网站色在线| 亚洲欧洲日韩女同| 亚洲免费观看视频| 日韩一级大片在线| 宅男精品视频| 亚洲综合视频一区| 欧美在线地址| 久久久综合香蕉尹人综合网| 久久久亚洲高清| 蜜臀99久久精品久久久久久软件| 狂野欧美激情性xxxx| 欧美精品成人| 国产精品久久久对白| 国产欧美日韩综合一区在线观看 | 欧美日本韩国| 欧美网站在线观看| 国产三区二区一区久久| 韩日在线一区| 日韩午夜高潮| 亚欧成人精品| 免费高清在线一区| 亚洲三级电影全部在线观看高清| 亚洲最快最全在线视频| 亚洲免费伊人电影在线观看av| 欧美一级片在线播放| 美女诱惑黄网站一区| 欧美日韩美女| 好吊妞**欧美| 中文欧美日韩| 久久一二三国产| 亚洲精品乱码| 欧美一区激情| 欧美日本韩国一区| 国外成人在线视频| 亚洲深夜影院| 欧美freesex8一10精品| 夜夜嗨av一区二区三区中文字幕 | 国产精品视频xxxx| 亚洲国产一区二区三区在线播| 一区二区三区免费在线观看| 欧美自拍丝袜亚洲| 亚洲电影毛片| 久久xxxx| 国产精品成人一区二区三区夜夜夜 | 亚洲免费高清| 久久久另类综合| 中文日韩在线| 欧美14一18处毛片| 国产在线精品自拍| 亚洲一区二区三区精品在线观看| 欧美高清免费| 久久精品中文字幕免费mv| 国产精品乱人伦中文| 亚洲三级影片| 男人的天堂成人在线| 久久成人在线| 国产美女精品在线|