Eclipse rcp+rap 环境配置

Eclipse3.4/3.5

1)按照rap1.2插件:http://download.eclipse.org/rt/rap/1.2/update

 

2)构建Target Platform,下载runtime
http://www.eclipse.org/downloads/download.php?file=/rt/rap/1.2/target/rap-runtime-1.2.0-M5-20090210-1243.zip

说明:
        Since RCP and RAP bundles within the same instance do not work, we provide target platforms for download. After downloading, extract the file in a convenient location, say c:/target and start Eclipse. Open Window > Preferences, go to the Plug-in Development > Target Platform preference page, set the Location to the eclipse sub-directory of the extracted archive (e.g. c:/target/eclipse). Finally click Reload. You should see the just downloaded plug-ins appear in the Plug-ins list.

 

3)测试:3.5/3.4跑rcp/rap均通过。但3.5根据模板生成的rap工程,src类生成不全(可以用3.4生成后copy过去)。

执行rap/rcp项目需要切换Target Platform。

 

4)使用osgi作为服务时,因为run configuration需要加载的bundles太多(UI等无关的东东),手工去除麻烦,且不知它们之间的引用关系。
不去掉,run as osgi framework会报出一些bundles加载失败的消息,但不影响我们需要运行的bundle。
为了去掉这个烦人的错误,先在run configurations中把运行配置删掉。然后切换Target Platform到rap1.2,运行一下osgi工程,这样便自动产生了新的run configuration,这个配置不报错。再把Target Platform切换回来,最终:1)UI相关的rcp工程使用本地Target Platform 2)osgi使用rap1.2的Target Platform 正常运行,各不相干。3.5版本preference有个target platform(Experimental)选项,表示实验环境,可以在此配置好多个环境,运行时快速切换。
但如果需要在一个eclipse中同时运行不同的target platform,则通过osgi工程借助上述的run configuration。

osgi的run configuration生成了以后,不要再重复做target platform的切换,否则配置中的bundle可能被去掉。


运行Target Platform:
 rcp:eclipse-rcp版自带Target Platform
 osgi/rap:rap1.2 Target Platform

 

官方osgi运行需要bundle列表(内置web server):http://www.eclipse.org/equinox/server/http_in_equinox.php

osgi与web服务器的集成:http://www.eclipse.org/equinox/server/http_in_container.php

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值