Eclipse报错解决--an error has occurred see the log file

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/stalin_/article/details/80320956

今天使用eclipse时卡死了,再打开出现了这个错误(an error has occurred see the log file)。

没办法,自己上网找了很多方法,总算是解决掉了。

这里,我总结了一下解决这个问题所用的方法。如果你也遇到类似的错误。可以按这个进行逐一尝试。

1.在eclipse安装目录下打开命令行: eclipse -clean。

2.打开eclipse安装目录下的eclipse.ini文件,在最后一行添加--add-modules=ALL-SYSTEM。保存并重启eclipse。

3.重装jdk并重配环境变量。

4.删除eclipse临时文件。eclipse/configuration 目录下的 org.eclipse.osgi 和 org.eclipse.update 两个子目录。

5.删除/.metadata/.plugins/org.eclipse.core.resources/.snap。

6.删除/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi(我是在执行了这个之后正常的)



喜欢的朋友点个赞哦~~

阅读更多

扫码向博主提问

stalin_

非学,无以致疑;非问,无以广识
去开通我的Chat快问

求救啊,eclipse报错:an error has occurred, see the log file

03-28

IDIGO 和 LUNA 版本都报错。rn解压后第一次能打开,后面就一直报错。rn试了网上的很多方法,都不行。rnJDK是jdk-8u40-windows-i586.1426143543.exe这个版本。rn部分log文件:rn[code=java]!SESSION 2015-03-28 13:27:06.272 -----------------------------------------------rneclipse.buildId=4.4.2.M20150204-1700rnjava.version=1.8.0_40rnjava.vendor=Oracle CorporationrnBootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CNrnrn!ENTRY org.eclipse.osgi 2 0 2015-03-28 13:27:06.605rn!MESSAGE The persistent format for the framework data has changed. The framework will be reinitialized: Found persistent version "1645486949" expecting "3"rnrn!ENTRY org.eclipse.osgi 4 0 2015-03-28 13:27:06.610rn!MESSAGE The -clean (osgi.clean) option was not successful. Unable to clean the storage area: D:\eclipse\configuration\org.eclipse.osgirnrn!ENTRY org.eclipse.osgi 4 0 2015-03-28 13:27:14.873rn!MESSAGE An error occurred while automatically activating bundle org.eclipse.equinox.registry (179).rn!STACK 0rnorg.osgi.framework.BundleException: Exception in org.eclipse.core.internal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.rn at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)rn at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)rn at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)rn at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)rn at org.eclipse.osgi.container.Module.doStart(Module.java:571)rn at org.eclipse.osgi.container.Module.start(Module.java:439)rn at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)rn at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)rn at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)rn at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)rn at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)[/code]

没有更多推荐了,返回首页