当我在运行配置中选择极少数捆绑包启动OSGi框架时,Eclipse(Oxygen)会启动所有可用的捆绑包并发出一堆错误。第一个是:
!ENTRY org.eclipse.epp.mpc.ui 4 0 2017-04-13 09:46:50.669
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.epp.mpc.ui [1142]
我在捆绑列表中共有1252个捆绑包,但ss
返回1256个捆绑包。任何人都可以阐明为什么会如此?
已添加:config.ini
osgi.bundles=reference\:file\:/home/../workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.equinox.simpleconfigurator_1.1.200.v20160504-1450.jar@1\:start
org.eclipse.update.reconcile=false
osgi.bundles.defaultStartLevel=4
osgi.install.area=file\:/home/../workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool
osgi.framework=file\:/home/../workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.osgi_3.11.3.v20170209-1843.jar
org.eclipse.equinox.simpleconfigurator.configUrl=file\:/home/../workspace/.metadata/.plugins/org.eclipse.pde.core/stable-test/org.eclipse.equinox.simpleconfigurator/bundles.info
osgi.configuration.cascaded=false
答案 0 :(得分:0)
检查 bungle.info 文件(org.eclipse.epp.mpc.ui
)
org.eclipse.equinox.simpleconfigurator.configUrl=file\:/home/../workspace/.metadata/.plugins/org.eclipse.pde.core/stable-test/org.eclipse.equinox.simpleconfigurator/bundles.info
我认为在你的情况下它是缺失的,如果这样在你的eclipse安装中安装这个插件。然后在config.ini中替换add osgi.bundles 属性,如下所述。重启应用程序。
osgi.bundles = <强> org.eclipse.epp.mpc.ui@1 \:启动下,参考:文件:/家庭/../工作区/ .metadata / .plugins / org.eclipse .pde.core / .bundle_pool /插件/ org.eclipse.equinox.simpleconfigurator_1.1.200.v20160504-1450.jar @ 1:start`