OSGI框架搭建常见问题即错误

问题一

Could not find bundle: org.eclipse.equinox.console

1.【OSGi】Could not find bundle: org.eclipse.equinox.console

2、需要导入,equinox-SDK-M20150708-1000 下的plugins,


preference-->plug-in development-->New Target路径包括equinox-SDK plugins文件夹即可

3.需要如下jar包即可,Run-->Run Configurarion-->OSGI Framework--->右击new 加入即可


4.成功跑起


问题二: 

Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8

1.Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
2.更改MANIFEST.MF文件即可,
Bundle-RequiredExecutionEnvironment: JavaSE-1.8改为Bundle-RequiredExecutionEnvironment: JavaSE-1.7即可

你可能感兴趣的:(osgi)