這是我寫的第一篇博客,博客我來了;
我是好學的人,希望在這上面遇到志同道合的人,對技術有更高追求的人;
重啟eclipse的時候報出來 An error has occurred, See the log file 日記地址
我看日記看到最后報錯信息是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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
我沒有看明白,我通過上網查詢,有些說是因為下的jdk版本太低,可是我安裝的是jdk1.6的,一看肯定不是這個原因,
有些說是因為我的安裝包是從別人那拷貝過來的,配置的信息和我的電腦的配置信息,不一樣,解決方式是重新安裝eclipse,
我這個人有個毛病,喜歡刨根問底,一定要弄明白是什么原因導致的;
皇天不負有心人,我在錯誤日記信息里找到了原因,see config.ini
原來是因為安裝eclipse中的文件夾名是 configuration 下需要 config.ini 這個文件
cofig.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
