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

逛奔的蝸牛

我不聰明,但我會很努力

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

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 逛奔的蝸牛 閱讀(1644) 評論(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成人天堂| 久久久久久亚洲精品不卡4k岛国| 一本一本久久| 国产精品黄页免费高清在线观看| 99伊人成综合| 亚洲天堂免费观看| 国产欧美日韩在线观看| 久久精品国产亚洲一区二区| 午夜影院日韩| 国模大胆一区二区三区| 免费观看成人www动漫视频| 久久久蜜桃一区二区人| 亚洲国产日韩欧美在线图片 | 欧美精品久久一区二区| 99一区二区| 亚洲女同在线| 一区二区三区在线高清| 欧美激情精品久久久久久大尺度| 欧美乱人伦中文字幕在线| 亚洲欧美日韩精品一区二区| 欧美在线日韩精品| 香蕉久久夜色精品国产| 红桃视频欧美| 亚洲激情在线| 国产裸体写真av一区二区| 欧美国产丝袜视频| 欧美四级伦理在线| 久久这里只有| 欧美视频四区| 老司机精品视频一区二区三区| 欧美激情国产高清| 欧美伊人久久久久久久久影院 | 亚洲最新视频在线| 国产亚洲免费的视频看| 亚洲国产婷婷香蕉久久久久久99 | 另类成人小视频在线| 一区二区精品| 狼狼综合久久久久综合网| 亚洲视频久久| 老司机久久99久久精品播放免费 | 亚洲第一中文字幕| 亚洲欧洲精品成人久久奇米网| 欧美色图天堂网| 亚洲成色www8888| 国产精品久久中文| 亚洲精品乱码久久久久久黑人 | 久久久视频精品| 亚洲一区二区在线免费观看视频| 久久天天综合| 久久精品亚洲乱码伦伦中文| 欧美日韩国产a| 欧美不卡三区| 一区二区三区在线视频免费观看| 亚洲午夜精品17c| 一本色道久久88综合日韩精品| 欧美诱惑福利视频| 欧美一级成年大片在线观看| 欧美国产专区| 亚洲激情自拍| 亚洲电影专区| 免费成人高清| 欧美成人中文| 亚洲国产精品久久久| 久久激情一区| 久久午夜精品| 一色屋精品视频免费看| 欧美在现视频| 麻豆成人在线播放| 国产一区二区三区最好精华液| 亚洲一区欧美一区| 国产精品人成在线观看免费 | 欧美一区二区三区婷婷月色 | 久久精品二区三区| 久久精品首页| 曰韩精品一区二区| 久久天堂国产精品| 亚洲第一狼人社区| 亚洲麻豆av| 欧美日韩伊人| 99精品视频免费在线观看| 这里只有精品视频在线| 国产精品久久久久久久久久久久| 一区二区三区国产盗摄| 欧美一区国产二区| 狠狠干综合网| 欧美成人精品1314www| 91久久嫩草影院一区二区| 99国内精品久久| 国产精品xxxav免费视频| 亚洲永久字幕| 欧美国产视频日韩| 亚洲午夜激情免费视频| 国产欧美激情| 免费亚洲电影| 久久久精品国产99久久精品芒果| 国产综合在线看| 免费日本视频一区| 亚洲性感激情| 久久综合久久综合久久综合| 最新国产成人av网站网址麻豆| 欧美女激情福利| 亚洲嫩草精品久久| 欧美高清自拍一区| 亚洲男女毛片无遮挡| 尤物99国产成人精品视频| 欧美精品免费观看二区| 亚洲一区二区精品| 欧美激情精品久久久久久黑人| 一区二区三区高清不卡| 黄色成人片子| 欧美日韩高清在线| 久久久久久久激情视频| 日韩视频一区二区三区在线播放免费观看 | 欧美精品自拍| 久久精品人人做人人爽| 日韩视频专区| 欧美a级一区| 午夜精品久久久久久久蜜桃app | 亚洲一区3d动漫同人无遮挡| 国内精品伊人久久久久av影院| 欧美日韩少妇| 母乳一区在线观看| 性欧美超级视频| 宅男精品视频| 亚洲激情视频网站| 久久综合影视| 久久国产黑丝| 午夜免费电影一区在线观看| 亚洲精品一区二区在线观看| 国产亚洲欧美一区在线观看 | 久久人人爽人人| 午夜久久99| 亚洲一区二区高清视频| 亚洲剧情一区二区| 亚洲高清视频的网址| 久久噜噜亚洲综合| 欧美中文字幕视频| 亚洲一区在线看| 亚洲午夜视频在线| 亚洲特色特黄| 亚洲午夜精品一区二区| 一区二区高清在线| 在线视频免费在线观看一区二区| 亚洲第一网站| 亚洲国产成人在线| 亚洲电影在线看| 亚洲国产裸拍裸体视频在线观看乱了中文 | 日韩午夜免费视频| 一区二区三区久久久| 亚洲视频每日更新| 亚洲欧美日韩一区二区三区在线| 一区二区三区高清在线| 亚洲一区二区三区777| 亚洲一区二区久久| 亚洲欧美一区二区原创| 欧美伊久线香蕉线新在线| 久久福利影视| 奶水喷射视频一区| 欧美日韩1区2区3区| 欧美日韩国产色视频| 国产精品久久久999| 国产精品美女主播在线观看纯欲| 国产精品视频一| 国产一区二区三区在线观看网站 | 亚洲国产精品一区| 91久久精品一区| 中日韩午夜理伦电影免费| 亚洲自拍三区| 麻豆精品传媒视频| 亚洲国产精品久久久久婷婷884| 亚洲日韩视频| 亚洲午夜未删减在线观看| 亚洲欧美精品中文字幕在线| 久久九九热re6这里有精品| 欧美.日韩.国产.一区.二区| 欧美日韩p片| 好吊一区二区三区| 亚洲精品网站在线播放gif| 亚洲综合电影| 久久综合九色九九| 日韩午夜在线| 久久精品成人欧美大片古装| 欧美精品一区二| 国产精品资源| 亚洲久久视频| 欧美在线一二三区| 亚洲国产精品视频| 亚洲欧美另类国产| 欧美激情a∨在线视频播放| 国产精品视频第一区| 亚洲欧洲精品成人久久奇米网| 亚洲婷婷综合久久一本伊一区| 久久亚洲综合网| 一本色道**综合亚洲精品蜜桃冫| 久久精品人人做人人爽| 国产精品成人免费视频| 亚洲大胆在线| 久久久精品国产免大香伊| 日韩特黄影片|