`
guojch
  • 浏览: 70267 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

MyEclipse启动时报 Unable to acquire application service. Ensure that the org.eclips

阅读更多
今天MyEclipse启动时报如下错误:
!SESSION 2012-02-12 11:32:55.198 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -os win32 -ws win32 -arch x86 -clean

!ENTRY org.eclipse.osgi 4 0 2012-02-12 11:32:55.805
!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:368)
	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:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

从网上也没找到合适的解决方案,后经观察发现是路径问题。因为我的MyEclipse是从另一台机器直接拷过来的,非安装版,所以路径跟我本机不一样。具体解决方案如下:
找到你的MyEclipse所在路径下的configuration\org.eclipse.equinox.simpleconfigurator\bundles.info文件,譬如我的是
E:\develop\soft\myeclipse8\Genuitec\MyEclipse 8.x Latest\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info
用记事本打开会发现里面有这样的字段file:/X:/xx/xx/Genuitec,把它全部替换为你本机实际的路径,然后保存。重启MyEclipse,OK,搞定!

分享到:
评论
1 楼 bylijinnan 2014-07-23  

相关推荐

Global site tag (gtag.js) - Google Analytics