我是OSGi的新手,我无法在Eclipse Mars(4.5.1)上运行“Hello OSGi Bundle”模板,我收到了下面提到的控制台消息 .

我的问题是 - 我们是否需要安装除Eclipse Mars(4.5.1)以外的任何其他东西来运行Hello OSGi模板?我的JDK是1.7.0_80 .

我试过的 -

  • 在互联网上搜索此问题 - 无法在2天内解决:(

  • 在运行配置中 - 单击“取消全选”按钮,然后选择我的包,然后单击“添加必需的包”(此操作再添加2个包)

  • 单击 - “验证捆绑包” - 提供“未检测到任何问题”警报 .

  • 单击“应用”按钮

  • 单击“运行”按钮 .

  • Eclipse Mars-
    enter image description here
    默认添加的资源

Console messages -

Hello World!!
!SESSION 2016-02-05 15:27:02.454 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Command-line arguments:  -dev file:C:/Users/212553222/workspace/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 2016-02-05 15:27:02.991
!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.core.runtime.internal.adaptor.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:58)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:331)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
    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:669)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

UPDATE-

也许,以下在Eclipse Mars中为我工作(在那里读取控制台错误消息和运气) -
enter image description here

OSGi控制台输出 -
enter image description here

But still can not see the osgi> prompt in the command shell window(Windows 7), the shell just keeps on waiting. Why? -
enter image description here