posts - 66,  comments - 40,  trackbacks - 0
今天花了大半天安装ATF来使用dojo,现把安装的一些步骤和心得罗列如下:

AJAX Toolkit Framework(下面简称ATF)为 Eclipse 提供 Ajax 支持,其绑定当下最流行的 AJAX 框架(Dojo, Zimbra, Rico, etc),为 Eclipse 提供整合的模块。Eclipse 用户可以使用 AJAX Toolkit Framework 来编写 AJAX 应用程序。就像在 Eclipse 中开发平常的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服务器
5、XULRunner 步骤:
  1. 下载 XULRunner 包: Win32 or Linux
  2. 把 XULRunner 包解压到某一路径(例如, C:\XULRunner).
  3. 转到Win32的解压路径(例如, C:\XULRunner).
  4. 卸载以前版本的xulrunner.
    • 已为所有用户注册:
      Win32: xulrunner --unregister-global
      Linux: sudo ./xulrunner --unregister-global
    • 仅已为当前用户注册:
      xulrunner --unregister-user
  5. 使用新的 XULRunner 注册:
    • 为所有用户注册:
      Win32: xulrunner --register-global
      Linux: sudo ./xulrunner --register-global
    • 仅为当前用户注册:
      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的全部功能,有三部份组件应该加入到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 参数来重新启动Eclipse.

开发dojo应用: 见 http://www.eclipse.org/atf/flash/index2.php
调试dojo应用: 见 http://www.eclipse.org/atf/flash/index4.php

posted on 2006-12-05 18:38 happytian 阅读(5254) 评论(7)  编辑  收藏

FeedBack:
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结
2006-12-12 17:27 | BeanSoft
支持一下!  回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结[未登录]
2007-01-28 16:31 | jesse
最好翻译一下,看不太懂
还有就是详细一点
辛苦了!  回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结[未登录]
2007-01-28 16:41 | jesse
急啊!!!!!
  回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结
2007-01-30 17:24 | happytian
已简单翻译,不知对你是否有帮助  回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结
2007-03-16 17:05 | 小鹏
非常感谢,楼主写的很详细,我已经安装成功~
说明一下,下面的代码是在doc下运行的,我迷糊了好一会儿
卸载以前版本的xulrunner.

已为所有用户注册:
Win32: xulrunner --unregister-global
Linux: sudo ./xulrunner --unregister-global
仅已为当前用户注册:
xulrunner --unregister-user
使用新的 XULRunner 注册:

为所有用户注册:
Win32: xulrunner --register-global
Linux: sudo ./xulrunner --register-global
仅为当前用户注册:
xulrunner --register-user
  回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结
2007-03-25 15:41 | denghan
按楼主的步骤安装完成后,再按这篇文章的步骤,想做一个hello world
http://blog.csdn.net/f9inux/archive/2007/01/24/1492078.aspx
可是
为何在eclipse 的 File > New > Project。
里,找不到 Web > Static Web Project

请楼主帮忙看看是咋回事儿?》   回复  更多评论
  
# re: Eclipse ATF(AJAX Toolkit Framework) 安装总结
2007-04-26 11:47 |
谢谢楼主,安装成功! 顺便摘到我的博客,LZ不介意吧!  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 
<2006年12月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 87838
  • 排名 - 645

最新评论

阅读排行榜

评论排行榜