eclipse 調試時出現!MESSAGE Could not find bundle: org.eclipse.equinox.console解決辦法

eclipse 調試時出現!MESSAGE Could not find bundle: org.eclipse.equinox.console解決辦法

 

在用ECLIPSE調試OSGI時出現異常錯誤無法開打OSGI>

!SESSION 2013-05-13 22:50:24.171 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -dev file:C:/Documents and Settings/Administrator/Documents/workspace-sts-3.2.0.RELEASE/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 2013-05-13 22:50:25.000
!MESSAGE Could not find bundle: org.eclipse.equinox.console
!STACK 0
org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
	at org.eclipse.osgi.framework.internal.core.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:211)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

 

但是選種org.eclipse.equinox.console時還是會報錯,那時因爲OSGI組建之間存在依賴關係,要使用 org.eclipse.equinox.console必須要有它需要依賴的OSGI組建,因此在調試時,除了選擇自己編寫的OSGI組建還要選擇

  org.apache.felix.gogo.command
  org.apache.felix.gogo.runtime
  org.apache.felix.gogo.shell
  org.eclipse.equinox.console

 

問題解決成功出現OSGI>

osgi> ss
"Framework is launched."


id	State       Bundle
0	ACTIVE      org.eclipse.osgi_3.8.2.v20130124-134944
1	ACTIVE      BundleBase_1.0.0.qualifier
2	ACTIVE      BundleCnService_1.0.0.qualifier
3	ACTIVE      BundleEnService_1.0.0.qualifier
8	ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
9	ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705
10	ACTIVE      org.apache.felix.gogo.command_0.8.0.v201108120515
11	ACTIVE      org.eclipse.equinox.console_1.0.0.v20120522-1841
osgi> 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章