“无法获取应用服务”启动Eclipse时出错 [英] "Unable to acquire application service" error while launching Eclipse
本文介绍了“无法获取应用服务”启动Eclipse时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
java.lang .IllegalStateException:无法获取应用程序服务。确保已解决并启动了org.eclipse.core.runtime包(请参阅config.ini)。在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
中的org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
在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)
在org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
在org.eclipse.equinox.launcher.Main。 run(Main.java:1311)
需要帮助。
谢谢。
解决方案
/configuration/config.ini
文件应在commaseparated 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 @启动
如果需要,可以将其设置为 / eclipse.ini
:
-Dosgi.bundles = org.eclipse .equinox.common @ 2:start,org.eclipse.update.configurator @ 3:start,org.eclipse.core.runtime @ start
when ever i try to launch my eclipse i am getting the following exception an its not coming up.
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)
need help . thanks.
解决方案
The /configuration/config.ini
file should contain org.eclipse.core.runtime@start
in the commaseparated osgi.bundles
property. Here is the default osgi.bundles
property, maybe it was (accidently) changed during some upgrade:
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
You can if necessary override it by setting it as VM argument in /eclipse.ini
:
-Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
这篇关于“无法获取应用服务”启动Eclipse时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文