2017-04-13 76 views
1

當我運行OSGi框架並在運行配置中選擇很少的軟件包時,Eclipse(Oxygen)會啓動所有可用軟件包併發出一堆錯誤。第一個是:OSGi不會啓動選定的軟件包

!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/or[email protected]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

顯示您的config.ini文件內容。這將存儲在配置區域文件夾中。在運行配置中檢查配置選項卡。 –

+0

不要縮短內容,而是編輯您的文章並添加問題本身的全部內容而不是評論。 –

+0

謝謝先生@ChandrayyaGK! – user4887042

回答

0

檢查是否插件org.eclipse.epp.mpc.ui目前在bungle.info文件(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 = [email protected] \:啓動,參考:文件:/家庭/../工作區/ .metadata/.plugins/org.eclipse.pde .core/.bundle_pool/plugins/org.eclipse.equinox.simpleconfigurator_1.1.200.v20160504-1450.jar @ 1:start`

+0

那個插件確實在那裏丟失。從那以後,我用完全相同的設置創建了一個新的啓動配置,工作得很好。在工作示例中,雖然插件'org.eclipse.epp.mpc.ui'也缺失。在我切換到非工作配置並重置爲git中的相關提交後,我無法再現此問題,而是我得到'!MESSAGE FrameworkEvent錯誤 !STACK 0 org.osgi.framework.BundleException:Could not解析模塊:org.junit [216] 未解決的需求:Require-Bundle:org.hamcrest.core;捆綁版本=「1.3.0」;知名度:= 「再出口」'。 – user4887042

+0

進入'文件>導出>運行/調試>啓動配置'並選擇您的配置,並將其保存到您的機器上。導出後,您將在所選目錄中獲得**。launch **文件,打開此文件並複製內容,然後將其添加到您的問題/文章中以供進一步分析。 –

相關問題