经过数周的痛苦,我终于将我的OSGi应用程序部署在linux上并且几乎正在运行。
这是一个无头的应用程序,我的linux也是无头的。
我用命令
运行它java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar -application eclipse
当我运行它时,我看到我的所有Bundles都被激活,然后就像我期望它完成加载一样,我得到以下异常。 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
答案 0 :(得分:3)
实际上,由于http://www.volker-wegert.de/en/node/65#comment-197
,我找到了解决方案将启动级别设置为2并在config.ini中设置为自动启动
org.eclipse.core.runtime.jar@2:start