|
在Win xp SP2 下需要:
1、Eclipse 3.2.2,为了方便,我使用的是lomboz all in one版本,下载地址 http://forge.objectweb.org/projects/lomboz ,或者采用WTPall in one版本,http://download.eclipse.org/webtools/downloads/ 目前wtp最高版本为2.0,我并没有在2.0版本下测试,测试版本是1.5.5
2、JDK 1.5.0.12
3、XULRunner
- 下载 XULRunner http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/ 我下载的是 latest-mozilla1.8.0 下的 xulrunner-1.8.0.12pre.en-US.win32.zip
- 把 XULRunner 包解压到某一路径(例如, D:\XULRunner),注意: xulrunner路径中不能有中文
- 使用新的 XULRunner 注册
- 已为所有用户注册:
xulrunner --register-global
- 仅已为当前用户注册:
xulrunner --register-user
- 卸载以前版本的xulrunner:
- 为所有用户注册:
xulrunner --unregister-global
- 仅为当前用户注册:
xulrunner --unregister-user
4、下载ATF 我下载的是 0.2.1-v200704051500
http://www.eclipse.org/atf/
在安装完 xulrunner 后,安装ATF
- 打开Lomboz 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
安装完成后重启,打开Window>>Preferences>>ATF>>Installed AJAX Euntimes下,应该还需要安装三个组件
在 Eclipse 的ATF plugins下的org.eclipse.atf.personality.rico.runtime_0.2.1.v200704051500文件夹下: (_0.2.1.v200704051500 可能随您的ATF版本不同而不同)
- 打开 resources/ 路径
- 加入 prototype.js
- 加入 rico.js
注意: prototype.js 和 rico.js 从这里 http://openrico.org/rico/downloads.page 获得
注意: rico当前版本为2.0 beta,prototype的版本为 1.5.1,这里我下载的是 rico1.1.2 和prototype 1.4.0
在 org.eclipse.atf.personality.dojo.runtime_0.2.1.v200704051500 文件夹下:
注意: Dojo 从这里 http://dojotoolkit.org/downloads获得,这里我下载的是 DOJO 0.43
在 org.eclipse.atf.personality.scriptaculous.runtime_1.0.0 文件夹下:
- 打开 resources/ 路径
- 拷贝 scriptaculous-js-1.7.0/ 下的所有文件
注意: scriptaculous 从这里 http://script.aculo.us/downloads 获得,这里我下载的是 scriptaculous-js-1.7.0版本
在 org.eclipse.atf.javascript.jslint_0.2.1.v200704051500 文件夹下:
- 加入 jslint.js 到 resources/ 路径下
注意:jslint.js 从 这里 http://www.jslint.com/fulljslint.js 获得,得到后把fulljslint.js改成jslint.js即可。
(这个我在安装过程中,发现并没有起到任何作用,但是官方文档上写的需要这个,这个暂时作为一个小疑问吧)
好了到这里 ATF已经完全安装完毕,这里有两个例子,大家可以观看一下
开发dojo应用: 见 http://www.eclipse.org/atf/flash/index2.php
调试dojo应用: 见 http://www.eclipse.org/atf/flash/index4.php
|