!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
osgi.instance.area.default=@user.home/workspace
eof=eof
重启eclipse后,删除原工作空间下面.metadata文件,或者更换其他空间。

本文解决在Windows7环境下迁移Eclipse IDE时遇到的错误问题,包括删除configuration目录内容、新建config.ini文件并填充关键配置信息,以及重启Eclipse后删除原工作空间下的.metadata文件或更换其他工作空间的步骤。
1126

被折叠的 条评论
为什么被折叠?



