欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

eclipse 启动报错 Ensure that the org.eclipse.core.runtime bundle is resolved

shiping1 的头像

从备份的移动硬盘里拷贝出Eclipse 启动报错:

 

 

Java代码  收藏代码
  1. !ENTRY org.eclipse.osgi 4 0 2012-05-04 14:45:47.608  
  2. !MESSAGE Application error  
  3. !STACK 1  
  4. java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).  
  5.     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)  
  6.     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)  
  7.     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)  
  8.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  9.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
  10.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
  11.     at java.lang.reflect.Method.invoke(Method.java:597)  
  12.     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)  
  13.     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)  
  14.     at org.eclipse.equinox.launcher.Main.run(Main.java:1407)  

 

 

造成原因:原来的IDE是在windows XP下进行的。配置信息与windows7 不一样。此次移植到win7下进行开发。

 

解决办法:

1. 删除configuration 目录

2. 新建config.ini 文件

    将以下内容拷贝进去:

 

Java代码  收藏代码
  1. osgi.splashPath = platform:/base/plugins/org.eclipse.platform  
  2. osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start  
  3. eclipse.product=org.eclipse.sdk.ide  
  4. osgi.instance.area.default=@user.home/workspace  
  5. eof=eof  

 3. 重新启动eclipse 会自动生成新的配置文件。


来自 http://jakbb.iteye.com/blog/1511346

 

普通分类: