osgi 运行错误

来源:互联网 发布:经济学最优化 编辑:程序博客网 时间:2024/06/05 22:40

使用eclipse搭建标准的osgi测试时(HelloWord模板),启动后osgi控制台报错“Workbench has not been created yet”。解决方式:在参数值最后加入-clean(如下图)



eclipse 调试时出现!MESSAGE Could not find bundle: org.eclipse.equinox.console解决办法

但是选种org.eclipse.equinox.console时还是会报错,那时因为OSGI组建之间存在依赖关系,要使用 org.eclipse.equinox.console必须要有它需要依赖的OSGI组建,因此在调试时,除了选择自己编写的OSGI组建(org.eclipse.osgi)还要选择

  org.apache.felix.gogo.command  org.apache.felix.gogo.runtime  org.apache.felix.gogo.shell  org.eclipse.equinox.console
问题解决成功解决


0 0
原创粉丝点击