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

逛奔的蝸牛

我不聰明,但我會很努力

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

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>
            亚洲影音先锋| 性欧美办公室18xxxxhd| 欧美女同在线视频| 欧美一区二区三区久久精品| 国产精品久久一区主播| 欧美一区二区| 久久综合九色综合网站| 亚洲精品偷拍| 亚洲无线一线二线三线区别av| 国产日韩1区| 久久婷婷一区| 欧美人妖在线观看| 亚洲视频播放| 欧美制服丝袜| 99在线精品观看| 亚洲欧美日韩国产一区二区| 在线观看av一区| 亚洲免费激情| 蜜臀久久99精品久久久久久9| 亚洲欧洲在线观看| 亚洲一二三区视频在线观看| 在线观看中文字幕不卡| 亚洲六月丁香色婷婷综合久久| 国产精品美女久久| 欧美大胆a视频| 国产精品热久久久久夜色精品三区| 久久久久九九视频| 欧美老女人xx| 老司机aⅴ在线精品导航| 欧美日韩国产精品一区| 久久久久国产一区二区三区| 一本久久a久久精品亚洲| 欧美在线资源| 亚洲欧美国产一区二区三区| 欧美一区日本一区韩国一区| 亚洲精品综合| 久久国产精品色婷婷| 国产精品天美传媒入口| 欧美国产精品专区| 国产精品一级| 夜夜嗨av一区二区三区免费区| 在线观看中文字幕亚洲| 性色av一区二区三区| 一区二区三区国产盗摄| 免费观看日韩| 久久综合给合| 国产一区久久| 亚洲欧美视频| 羞羞答答国产精品www一本 | 久久成人免费视频| 欧美成人小视频| 欧美成年人网| 永久免费视频成人| 久久成人免费电影| 久久精品视频在线| 国产伦精品一区二区三区| 亚洲人成在线观看一区二区| 尤物精品国产第一福利三区 | 亚洲韩国青草视频| 极品少妇一区二区三区| 翔田千里一区二区| 久久狠狠一本精品综合网| 国产精品一区二区你懂的| 亚洲深爱激情| 久久国产精品电影| 国产视频自拍一区| 欧美制服丝袜| 鲁大师影院一区二区三区| 国产在线精品二区| 久久亚洲精品网站| 欧美激情一级片一区二区| 亚洲人成亚洲人成在线观看 | 99精品久久| 亚洲综合精品四区| 欧美系列一区| 亚洲欧美精品在线| 一区二区激情小说| 欧美日韩一二三区| 亚洲一区欧美一区| 欧美在线视频网站| 伊人久久综合97精品| 久久久亚洲精品一区二区三区| 美女精品在线观看| 亚洲精品乱码久久久久久蜜桃麻豆 | 美国十次成人| 亚洲精品一区二区三区福利| 欧美精品福利视频| 亚洲视频在线观看三级| 久久久久国产精品午夜一区| 亚洲高清123| 欧美网站在线观看| 久久久精品动漫| 亚洲精品一区二区三区婷婷月| 亚洲欧美日韩国产中文在线| 狠狠色综合网| 欧美午夜电影网| 久久久精品网| 日韩午夜三级在线| 久久综合电影一区| 亚洲综合久久久久| 亚洲激情视频在线| 国产精品你懂的在线| 老巨人导航500精品| 中国成人在线视频| 欧美成人午夜影院| 欧美在线看片a免费观看| 亚洲激情自拍| 国产日韩精品一区二区三区在线| 美女精品自拍一二三四| 亚洲女性裸体视频| 亚洲乱码久久| 欧美xart系列在线观看| 午夜亚洲福利在线老司机| 亚洲第一精品在线| 国产欧美精品| 欧美日韩一区国产| 免费观看一区| 久久精视频免费在线久久完整在线看| 亚洲美女尤物影院| 欧美国产一区视频在线观看 | 亚洲巨乳在线| 在线观看一区欧美| 国模吧视频一区| 国产精品久久久久久久一区探花| 欧美国产精品久久| 理论片一区二区在线| 欧美一二三区精品| 亚洲欧美高清| 亚洲午夜激情在线| 亚洲天堂激情| 一区二区三区欧美视频| 亚洲精品日韩在线观看| 亚洲风情在线资源站| 免费在线观看成人av| 久久人人爽人人| 久久在线观看视频| 久久蜜桃精品| 免费国产一区二区| 毛片一区二区| 欧美大片免费| 亚洲国产精品久久久久秋霞影院| 欧美h视频在线| 欧美成年人视频| 亚洲国产精品久久久久| 亚洲国产精品一区二区久| 亚洲高清不卡av| 亚洲人成网站在线播| 亚洲黄网站黄| 一本色道久久综合亚洲精品小说 | 乱码第一页成人| 美日韩精品视频免费看| 久久一区二区三区超碰国产精品| 久久爱另类一区二区小说| 久久成人久久爱| 美女999久久久精品视频| 欧美国产综合一区二区| 亚洲第一黄色网| 日韩系列欧美系列| 亚洲五月六月| 久久久国产一区二区| 欧美99在线视频观看| 欧美日韩视频专区在线播放| 国产精品白丝黑袜喷水久久久| 国产精品日本欧美一区二区三区| 国产视频一区欧美| 亚洲成色999久久网站| 亚洲美女淫视频| 午夜精品在线看| 久久综合伊人77777尤物| 亚洲高清视频的网址| 在线午夜精品| 久久亚洲影音av资源网| 欧美日韩在线免费| 国产综合欧美在线看| 亚洲免费电影在线观看| 亚洲欧美日韩在线观看a三区| 久久精品最新地址| 亚洲韩国一区二区三区| 亚洲午夜羞羞片| 免费中文字幕日韩欧美| 国产精品网站视频| 亚洲娇小video精品| 欧美一区=区| 最新国产成人av网站网址麻豆| 亚洲欧美日本伦理| 欧美护士18xxxxhd| 国产一区二区三区自拍| 中文av字幕一区| 免费日韩视频| 亚洲一区精品视频| 欧美激情一区二区三区不卡| 国内一区二区三区| 亚洲综合成人婷婷小说| 亚洲国产一区二区a毛片| 欧美伊人影院| 国产精品久久午夜| 亚洲精品一区在线观看| 另类酷文…触手系列精品集v1小说| 在线亚洲精品| 欧美精品久久一区|