日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

ZK開發(fā)環(huán)境快速配置

系統(tǒng) 2020 0

以下內(nèi)容全部來自 ZK QuickStart Guide(寫的不好,大家就當(dāng)學(xué)習(xí)英文吧。)
如果不清楚的可以直接看 ZK 官方的 QuickStart Guide
http://docs.zkoss.org/wiki/QuickStart_Guide
第一步:準(zhǔn)備環(huán)境運(yùn)行 ZK( Preparing an environment to run ZK )

??? 先決條件( Prerequisites )

??????? 如果你沒有安裝以下軟件,請(qǐng)先下載了再說吧(If you haven't installed the following applications on your computer, please download and install them first. ) ??

??????? Java SE Development Kit (JDK)

??????? Application Server

??????? ZK Library ???

????????ZK?Studio

??????? Eclipse

??????????? JDK,Eclipse和服務(wù)器就不說了啥,服務(wù)器就用Tomcat吧

?

??????????? ZK Library可以在 http://www.zkoss.org/download/zk.dsp 這里下載

??????????? ZK Studio插件可以在 http://www.zkoss.org/product/zkstudio.dsp 這里下載,并安裝到Eclipse上

?

第二步,配置ZK庫(Configuring the ZK Library )

??????? 1.打開Eclipse(前提條件是已經(jīng)安裝好了ZK studio插件)Start an Eclipse installation which already contains ZK Studio.

??????? 2.點(diǎn)擊菜單Window->Preferences(From menu goto Windows > Preferences )

??????? 3.在打開的這個(gè)窗口上選擇ZK->ZK Packages(On the Preferences Window, select ZK > ZK Packages )

??????? 4.點(diǎn)擊Add Diretory 選擇到你下載的ZK Library包,不用解壓,直接是ZIP文件(If you have extracted the ZK library please click Add Directory and select the location where you extracted file, then click OK; Otherwise click Add File and select the ZK Package zip file. )如下圖

???????

?

? 5.會(huì)跳出一個(gè)窗口來,點(diǎn)擊OK

?6.讓你給這個(gè)包命個(gè)名,就用默認(rèn)的吧,點(diǎn)擊OK(Name the imported package and then click OK)

?

7.再選擇上那個(gè)ZK Library就行了,如果你不選擇,會(huì)自動(dòng)選擇最后你引入的版本的(ZK Studio will now import the selected ZK Library,If you don't select a default ZK library, ZK Studio will automatically choose the latest version of your imported ZK Packages. )

好了,就這樣,ZK的環(huán)境就配置完了

?

官方還提供了豐富的例子程序,在線看: http://www.zkoss.org/zkdemo/userguide

下載運(yùn)行: http://prdownloads.sourceforge.net/zk1/zk-demo-3.6.0.zip?download

?

第三步:用Eclipse創(chuàng)建ZK項(xiàng)目( Creating a "hello world" application from scratch (with an IDE) )

1.創(chuàng)建Dynamic web Project( Creating a new "Dynamic Web Project")

1.選擇File->New->Dynamic Web Project,如果沒有就選Others,再勾上Show All Wizards(Click File > New > Dynamic Web Project in Eclipse main menu)

?2.我這里和官方的不一樣,再點(diǎn)Next,加入ZK Supports,再點(diǎn)Finish就完成了一個(gè)項(xiàng)目的創(chuàng)建

第四步:創(chuàng)建一個(gè)新的ZUL文件( Creating a new ZUL file )

這個(gè)就像建立JSP文件一樣的

第五步:流行ZUL文件( Running the ZUL file )

1. Right click on the MyApps project in explorer and in the Menu dialog select Run As > Run on Server (右鍵項(xiàng)目,選擇Run AS -> Run on Server)
2. Select Apache > Tomcat v6.0 Server in server type dialog and then click Finish (選好服務(wù)器,點(diǎn)Finish就行了)
3. See the result in your browser. (在你的Browser里面查看)

?

ZK開發(fā)環(huán)境快速配置


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦?。?!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 盘锦市| 富顺县| 日照市| 鲁山县| 星座| 垦利县| 汾西县| 门头沟区| 高邑县| 武宣县| 项城市| 大安市| 略阳县| 肥东县| 积石山| 郑州市| 会东县| 阜南县| 怀化市| 广南县| 屯留县| 泌阳县| 宁乡县| 江油市| 恭城| 于田县| 定远县| 靖宇县| 历史| 酒泉市| 安康市| 富民县| 汝南县| 磐安县| 邮箱| 赤水市| 调兵山市| 盖州市| 高要市| 乌拉特后旗| 安西县|