刚接触java 用的Myeclipse 突然罢工:eclipse启动无响应,停留在Loading workbench状态(多数情况下,应该是非正常关闭eclipse工作区的文件状态错误所导致的。)百度的
解决方案:
查看工作空间中的.metadata/.plugins目录,在众多文件夹中
com.collabnet.subversion.merge org.eclipse.search
org.eclipse.compare org.eclipse.team.core
org.eclipse.core.resources org.eclipse.team.cvs.core
org.eclipse.core.runtime org.eclipse.team.ui
org.eclipse.debug.core org.eclipse.ui.ide
org.eclipse.debug.ui org.eclipse.ui.intro
org.eclipse.dltk.core org.eclipse.ui.views.log
org.eclipse.dltk.core.index.sql.h2 org.eclipse.ui.workbench
org.eclipse.dltk.ui org.eclipse.ui.workbench.texteditor
org.eclipse.epp.usagedata.recording org.eclipse.wb.discovery.core
org.eclipse.jdt.core org.eclipse.wst.internet.cache
org.eclipse.jdt.ui org.eclipse.wst.jsdt.core
org.eclipse.ltk.core.refactoring org.eclipse.wst.jsdt.ui
org.eclipse.ltk.ui.refactoring org.eclipse.wst.jsdt.web.core
org.eclipse.m2e.core org.eclipse.wst.sse.ui
org.eclipse.m2e.logback.configuration org.eclipse.wst.validation
org.eclipse.mylyn.bugzilla.core org.eclipse.wst.xml.core
org.eclipse.mylyn.tasks.ui org.tigris.subversion.subclipse.core
org.eclipse.php.core org.tigris.subversion.subclipse.graph
org.eclipse.php.ui org.tigris.subversion.subclipse.ui
发现了两个: org.eclipse.ui.workbench 和org.eclipse.ui.workbench.texteditor。删了这两个目录,重新启动eclipse。正常启动且原项目信息正确加载。
关于 eclipse启动卡死的问题(eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法),解决方法:
方案一(推荐使用,如果没有这个文件,就使用方案二):
到<workspace>\.metadata\.plugins\org.eclipse.core.resources目录,删除文件 .snap
方案二:
进入workspace/.metadata/.plugins/目录
重命名 org.eclipse.core.resources to org.eclipse.core.resources_old.
然后重启 eclipse
Close eclipse
Delete org.eclipse.core.resources
Rename org.eclipse.core.resources_old back to org.eclipse.core.resources
启动 eclipse