无法运行" Hello OSGi" Eclipse Mars 4.5.1中的程序模板

时间:2016-02-05 10:04:01

标签: java eclipse plugins osgi eclipse-mars

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

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

我尝试了什么 -

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

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

  3. 点击 - "验证捆绑包" - 给出"未检测到任何问题"警报。

  4. 点击"应用"按钮

  5. 点击"运行"按钮。

  6. Eclipse Mars- enter image description here

  7. 默认添加的资源

    控制台消息 -

    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)
    

    更新 -

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

    OSGi控制台输出 - enter image description here

    但是仍然无法在命令shell窗口(Windows 7)中看到osgi>提示符,shell只是一直在等待。为什么? - enter image description here

0 个答案:

没有答案
相关问题