每当我试图启动我的eclipse时,我都会得到以下异常,但它不会出现。
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
需要帮助。谢谢。
发布于 2010-03-22 23:27:51
/configuration/config.ini
文件在逗号分隔的osgi.bundles
属性中应包含org.eclipse.core.runtime@start
。以下是默认的osgi.bundles
属性,可能是在某些升级过程中(意外地)更改的:
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
如有必要,您可以通过在/eclipse.ini
中将其设置为VM参数来覆盖它
-Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
发布于 2011-02-12 07:09:39
我也遇到过同样的问题,下面是我如何解决这个问题的:我在.product编辑器的"configuration“选项卡上的”plugin“部分添加了插件"org.eclipse.core.runtime”。我将它的start level设置为default,并将auto-start设置为true。我删除了其他插件。我的理由是: Eclipse抱怨org.eclipse.core.runtime没有启动,所以让我们确保它确实启动了,并且它是唯一启动的插件。
在我这样做之后,我的应用程序运行得很好。然后,我检查了config.ini,看看有什么变化,发现org.eclipse.core.runtime现在变成了org.eclipse.core.runtime@start。这与BalusC的建议是一致的,我只是在.product编辑器中这样做的。
发布于 2012-03-08 22:48:34
对于那些搜索“确保org.eclipse.core.runtime包被解析并启动”的人,我想补充一下我的两点意见:
将“任意的”捆绑包添加到捆绑包列表中,仅仅因为它们似乎丢失了并不总是最佳的解决方案。有时它可能会变得相当令人沮丧,因为这些新的插件可能依赖于其他缺少的捆绑包,这需要更多的捆绑包等等……
因此,在将新的依赖项添加到所需包的列表之前,请确保您了解为什么需要该包(调试器是您的朋友!)。
这里的这个问题并没有提供足够的信息来使它成为所有情况下的有效答案,但是如果您遇到缺少org.eclipse.core.runtime的消息,请尝试将eclipse.application.launchDefault系统属性设置为false,特别是如果您尝试运行的应用程序不是"eclipse应用程序“(但可能只是equinox之上的无头运行时)。
这个链接可能会派上用场:http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html,查找eclipse.application.launchDefault系统属性。
https://stackoverflow.com/questions/2493415
复制相似问题