1、RAP开发工具下载浏览器
进入eclipse.org下载以下工具
eclipse
下载eclipse后,须要下载目标平台(target-platform),eclipse.org/rap中找到对应的target-platform下载工具
将下载的文件解压到eclipse的以下目录中
开发工具
设置目标平台eclipse->perfrence->plugin ... ->target platform spa
启动第一个RAP程序
orm
一 官网RAP的DEMO程序图片
打开Eclipse,进入Window>Open Perspective>Plug-in Development,而后在Plug-ins视图中找到rap的demo后右击,选择Import as>Source Project,将rap的demo源码工程导入到eclipse中,以下图所示:ip
而后切换到Package Exploer视图,workspace中会看到org.eclipse.rap.demo工程,而且会自动给咱们建好了Run Configurations配置,因此咱们只需进入Run>Run Configurations>RAP Application>Control Demo,而后点击Run,就将demo工程在Eclipse中运行起来了:开发
注意:在Run configurations窗口的Main标签中能够配置rap程序监听的端口号等信息!Argument标签中能够设置一些启动参数配置:get
最后咱们经过浏览器来访问该demo:http://127.0.0.1:10080/rap?startup=controls,以下图所示: