问题一
错误日志
!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:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
通过网络搜索,可能是不同系统造成的。我的eclipse软件使用了云盘同步,公司的电脑是Window7 64位系统,而家里的电脑是Window XP 32位系统。
网上有人给出解决办法,说是删除eclipse安装目录的下configuration文件夹下的所有文件,并重新创建config.ini文件,在 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
博主受此启发,根据日志提示,应该是 org.eclipse.core.runtime bundle is not neither resolved nor started 所以,本博主的解决办法是:
在configuration目录下找到config.ini文件,在其中找到 osgi.bundles=... 这行;
在本行最后,添加 ,org.eclipse.core.runtime@start (注意前面的英文逗号)
重新启动Eclipse,问题解决