这篇文章我们将介绍如何用Eclipse 集成开发环境开发一个简单的Java谷歌浪波机器人。
当前,只能把浪波机器人部使用任何与google app engine兼容的JVM(Java虚拟机)语言,比如Groovy,JRuby,Scala。这篇文章只涉及Java。
这篇文章是基于谷歌官方机器人开发的文章。
开发和测试浪波机器人的要求:
Java 6 http://java.sun.com/javase/downloads/index.jsp
谷歌机器人Java 库(lib) http://code.google.com/p/wave-robot-java-client/downloads/list
Eclipse http://www.eclipse.org/
谷歌Eclipse插件 http://code.google.com/eclipse/
Google App engine 帐户 https://appengine.google.com
谷歌浪波帐户 http://wave.google.com/
注意: 这篇文章, 我将使用 Eclipse3.4 (Ganymede), 但是谷歌也有对于Galileo的插件。所以应该没有大的区别。
第一步:安装谷歌插件:
在 Eclipse里面, 点击 “Help” -> “Software Updates…”, 然后在跳出的窗口中点击“Add Site” in the popup window,在location里面输入 http://dl.google.com/eclipse/plugin/3.4,点击安装 Google Update Site for Eclipse 3.4 (包括 Plugin 和 SDKs) . (if 如果你使用的是 Galileo 那么安装地址 update location 就应该是 http://dl.google.com/eclipse/plugin/3.5 )
在接受 使用协议(the term of use), 插件和谷歌app engine 开发包SDK 就开始安装,如果安装成功, Eclipse 会要求重启, 点击 ok后,安装完毕。
现在,我们可以开始开发了。
第二步:创建项目:
点击(图)创建一个新的“Web Application project” by click the icon in the toolbar.
1. 给项目一个名字, 比如: first-Robot
2. 给项目的包 package 一个名字, (可选,但是一个好习惯 ), 比如 com.onthetopofthewave
3. 反选 (uncheck)“Use Google Web Toolkit”, 因为我们的机器人不会有任何用户界面。请确保“Use Google App Engine“是选上的 ,写这篇文章时 google App engine SDK Java的版本是 1.2.6
4. 点击“Finish”
Project Overview
图一.1 项目结构
你项目的结构应该和上图相似。 Read More





Google Wave in the 2010
A New year starts and this one will be the year of Google Wave.
Google like the great demos and great announcements, but when we tried the Google Wave Developer Preview in August we started crying. Nothing worked, at the first click, Dr. Wave used to appear and you had to refresh again…
Dr. Wave and his friend F5
Nowadays it’s hard to find Dr. Wave.
Other things that Google Wave has improved is the speed. Waiting 20-30 seconds for a wave of 4 or 5 participants was the rule more than the exception at that time. Now, you can open a wave of 100 blips and 400 users, in less than 10 seconds you will have downloaded the entire wave. This is not all, you can start reading and scrolling down, it works!, not perfectly but works. A few months ago this was impossible. The usability has improved a lot, and users appreciate the speed and stability as well.
Read More »
If you like what you see, please, support us: