【问题标题】:org.eclipse.core.runtime bundle is not resolved in tycho buildorg.eclipse.core.runtime 包在 tycho 构建中未解决
【发布时间】:2026-01-26 19:20:06
【问题描述】:

我有一个项目,在使用 eclipse 构建时构建和运行良好,但是当我 trz 使用 maven 和 tycho 构建它时,我得到了

 java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

该包确实在插件目录中,并由 config.ini 引用。

问题是什么,如何解决?

您可以在此处找到代码: https://github.com/magwas/archi/tree/48c26595a87ddcfff994e3b9b058b6d6ad30f61e

这是完整的错误报告:

!SESSION 2014-05-02 10:57:06.671 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 2 0 2014-05-02 10:57:07.615
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-05-02 10:57:07.615
!MESSAGE Bundle org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807 [46] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.gtk.linux.x86 2 0 2014-05-02 10:57:07.615
!MESSAGE Platform filter did not match: (& (osgi.ws=gtk) (osgi.os=linux) (osgi.arch=x86))

!ENTRY org.eclipse.osgi 4 0 2014-05-02 10:57:07.615
!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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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)

【问题讨论】:

标签: eclipse maven tycho


【解决方案1】:

问题来了,因为您没有为 org.eclipse.core.runtime 包设置启动 lavel。

打开您的产品并设置起始级别,如下图所示。

【讨论】:

  • 能否将整个 config.ini 内容粘贴到这里?