Spring dm环境搭建 1 下载eclipse 3.6 压缩包并解压 。下载地址:
2 下载spring-osgi-2.0.0.M1压缩包并解压到e:/spring-dm。 下载地址: http://www./download/community?sid=635492 3 我们首先导入srping-dm的包。打开eclipse,选择Import,在导入的对话框中选择Plug-ins and Fragments,选择spring-dm所在的目录(e:/spring-dm/dist),选中core、io、extender这三个bundle。 4 使用这种方式再导入com.springsource.org.aopalliance、org.srpingframework.aop、org.springframework.beans、org.springframework.context、org.springframework.context.support、org.springframework.core这几个bundle。 这时如果启动的话,会报错。是因为前面导入的几个bundle有的依赖apache的common-logging日志包。在run-configurations对话框中选中target platform下org.apache.commons.logging(1.0.4.v201005080501)bundle。 5 修改依赖org.apache.commons.loggingbundle的模块的manifest.mf文件。 将org.apache.commons.logging;version="[1.1.1,2.0.0)", 修改为org.apache.commons.logging;version="[1.0.4,2.0.0)"。 现在在启动,就会看到所有bundle的状态都为active了。 |
|
来自: LibraryPKU > 《Java UI》