今天花了大半天安裝ATF來使用dojo,現(xiàn)把安裝的一些步驟和心得羅列如下:
AJAX Toolkit Framework(下面簡稱ATF)為 Eclipse 提供 Ajax 支持,其綁定當(dāng)下最流行的 AJAX 框架(Dojo, Zimbra, Rico, etc),為 Eclipse 提供整合的模塊。Eclipse 用戶可以使用 AJAX Toolkit Framework 來編寫 AJAX 應(yīng)用程序。就像在 Eclipse 中開發(fā)平常的Java 程序一樣,非常方便。
需要:
1、Eclipse SDK 3.2
http://www.eclipse.org/downloads/2、Eclipse Web Tools Project (WTP) 1.5 (and prerequisites)
http://download.eclipse.org/webtools/downloads/3、Sun Java 1.4.2 JDK(或更高)
4、Tomcat 5 或以上 或其他WTP支持的Http服務(wù)器
5、XULRunner 步驟:
- 下載 XULRunner 包: Win32 or Linux
- 把 XULRunner 包解壓到某一路徑(例如, C:\XULRunner).
- 轉(zhuǎn)到Win32的解壓路徑(例如, C:\XULRunner).
- 卸載以前版本的xulrunner.
- 已為所有用戶注冊:
Win32: xulrunner --unregister-global
Linux: sudo ./xulrunner --unregister-global
- 僅已為當(dāng)前用戶注冊:
xulrunner --unregister-user
- 使用新的 XULRunner 注冊:
- 為所有用戶注冊:
Win32: xulrunner --register-global
Linux: sudo ./xulrunner --register-global
- 僅為當(dāng)前用戶注冊:
xulrunner --register-user
6、下載ATF(目前最新版本0.4.0)
???
Windows Downloads
Linux Downloads
Installation Instructions
下載ATF完成后,按照以下的步驟安裝ATF:
- 打開Eclipse,?選擇 Help -> Software Updates -> Find and Install...
- 選擇Search for new features to install
- 選擇?Next
- 選擇?New Archived Site...
- 選擇 the location of the downloaded update site zip file
- 選擇 Finish
- 確保所有的?ATF features 都被選擇
- 按照以后推薦的操作安裝ATF
重要的必須的步驟
為了獲得ATF的全部功能,有三部份組件應(yīng)該加入到ATF的包里.
在 Eclipse 的plugin下的org.eclipse.atf.personality.rico.runtime 文件夾下:
- 打開?resources/?路徑
- 加入?prototype.js
- 加入?rico.js
注意: prototype.js?和 rico.js 從這里 http://openrico.org/rico/downloads.page 獲得
注意: this has only been tested with prototype 1.3.1 and rico 1.1-beta2
在 Eclipse 的plugin下的 org.eclipse.atf.personality.dojo.runtime 文件夾下:
- 打開?resources/?路徑
- 解壓dojo
- 拷貝?dojo-<version>-ajax/?下的所有文件到org.eclipse.atf.personality.dojo.runtime 下的resources/路徑下.
- Note: At the end, the plugin's resource/ directory should at least contain the src/ directory from the Dojo download.
Note: Dojo 從這里?http://dojotoolkit.org/download/獲得
Note: The ATF javascript validator will flag a few of the base Dojo javascript source files as having errors. These "errors" can be ignored and should not cause any break in Dojo functionality.
在 Eclipse 的plugin下的 org.eclipse.atf.javascript.jslint 文件夾下:
- 加入 jslint.js?到 resources/ 路徑下
Note:jslint.js 從 這里 http://www.jslint.com/fulljslint.js 獲得
一旦ATF 安裝完畢,必須使用clean 參數(shù)來重新啟動(dòng)Eclipse.
開發(fā)dojo應(yīng)用: 見 http://www.eclipse.org/atf/flash/index2.php
調(diào)試dojo應(yīng)用: 見 http://www.eclipse.org/atf/flash/index4.php
posted on 2006-12-05 18:38
happytian 閱讀(5267)
評論(7) 編輯 收藏