`

Unable to acquire application service. Ensure that the org.eclipse.core.runtime

 
阅读更多

在启动eclipse时报以下异常:

!ENTRY org.eclipse.osgi 4 0 2013-11-21 10:28:05.853

!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(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:622)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

 

网上很多都是说是从别人电脑拷贝过来,有时会出这种错误. 但是我是在做RCP开发时报的错. 原来是我有个bundle设置为自动启动,自动启动的bundle会在Config.ini文件中的bundle后面加上@start, 解决办法是去掉@start或者在org.eclipse.core.runtime后面加上@start 改为org.eclipse.core.runtime@start,\

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics