1

当我在运行配置中选择了很少的包启动 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
4

1 回答 1

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 中替换添加osgi.bundles属性,如下所述。重新启动应用程序。

osgi.bundles= org.eclipse.epp.mpc.ui@1\:start ,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`

于 2017-04-20T11:19:28.097 回答