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

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

 

 

!ENTRY org.eclipse.osgi 4 0 2012-05-04 14:45:47.608
!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:369)
	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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

 

 

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

 

解决办法:

1. 删除configuration 目录

2. 新建config.ini 文件

    将以下内容拷贝进去:

 

osgi.splashPath = platform:/base/plugins/org.eclipse.platform
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start
eclipse.product=org.eclipse.sdk.ide
[email protected]/workspace
eof=eof

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

 

 

你可能感兴趣的:(eclipse)