OSGi无头运行在Linux上-org.eclipse.core.runtime无法获取应用程序服务

经过数周的痛苦之后,我终于将我的OSGi应用程序部署在Linux上并且几乎可以运行.

它是无头的应用程序,我的linux也无头.

我用命令运行

java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar -application eclipse

当我运行它时,我看到我所有的捆绑软件都被激活,然后就像我期望它完成加载一样,我得到了以下异常. org.eclipse.core.runtime位于config.ini和插件导向器中.

有什么想法为什么不开始吗?我的起点是1

!ENTRY org.eclipse.osgi 4 0 2012-03-08 05:27:29.804
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

实际上,我找到了解决方案,这要归功于
http://www.volker-wegert.de/en/node/65#comment-197

将启动级别设置为2并在config.ini中设置为自动启动

org.eclipse.core.runtime.jar@2:start

解决方法:

其实我找到了解决方案,这要归功于http://www.volker-wegert.de/en/node/65#comment-197

将启动级别设置为2并在config.ini中设置为自动启动

org.eclipse.core.runtime.jar@2:start
上一篇:android-片段自动保存和恢复EditTexts的状态


下一篇:Activity的生命周期