关于eclipse启动报错,an error has occurred.see the log file

网上搜索各种方法,得知为由于Eclipse卡死或强制关闭之后会出现的情况

提供解决方法一:

 

查看log文件,发现有这样的信息:

 !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. 

解决方案:

删除...\.metadata\.plugins\org.eclipse.core.resources\*.snap这个文件,重启Eclipse,成功。

 

方法二(我的问题已成功解决):

查看log文件,发现有这样的错误信息:

!MESSAGE FrameworkEvent ERROR

解决方案:cmd命令进eclipse,运行命令 eclipse.exe -clean后会自动打开软件,启动成功

 

方法三(来自百度知道):

 

是不是eclipse版本太新引起的,我在更新之后也出现了这样的问题,
解决方法:
1,打开eclipse安装目录下的eclipse.ini文件;
2,打开的文本文件最后添加一行
--add-modules=ALL-SYSTEM
3,保存重新打开Eclipse。
解决方法:
1,打开eclipse安装目录下的eclipse.ini文件;
2,打开的文本文件最后添加一行
--add-modules=ALL-SYSTEM
3,保存重新打开Eclipse。

 

方法四:

 

1.打开eclipse工作空间D:\eclipse\workspace\.metadata\.plugins\org.eclipse.core.resources找到.projects文件

2.打开.projects文件,删除该目录下所以工程里的.markers.snap和.syncinfo.snap文件

3.再次启动eclipse就OK了!

 

方法五:

打开eclipse\configuration\.settings\org.eclipse.ui.ide.prefs

删除RECENT_WORKSPACES等号后面的内容

已标记关键词 清除标记
日志里显示 !MESSAGE Product com.genuitec.myeclipse.product.ide could not be found. !ENTRY org.eclipse.osgi 4 0 2016-12-22 09:40:55.305 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: No application id has been found. at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236) at org.eclipse.equinox.internal.app.EclipseAppContainer.start(EclipseAppContainer.java:98) at org.eclipse.equinox.internal.app.Activator.addingService(Activator.java:112) at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274) at org.eclipse.equinox.internal.app.Activator.start(Activator.java:54) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340) at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:405) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer(PlatformActivator.java:47) at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:32) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页