`

Eclipse打不开,提示“An error has occurred.See the log file ***/.log”

阅读更多
打开eclipse工作目录的\.metadata\.log文件,发现如下错误:

!ENTRY org.eclipse.osgi 4 0 2012-09-10 09:28:57.139
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (70).
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
    ... 22 more
Caused by: org.eclipse.core.internal.resources.ResourceException: Could not read master table.
    at org.eclipse.core.internal.resources.SaveManager.restoreMasterTable(SaveManager.java:835)
    at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:684)
    at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1527)
    at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2503)
    at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2251)
    at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:439)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    ... 28 more
Caused by: java.io.FileNotFoundException: D:\workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources (鎷掔粷璁块棶銆?
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(Unknown Source)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.(SafeChunkyInputStream.java:35)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.(SafeChunkyInputStream.java:31)
    at org.eclipse.core.internal.resources.SaveManager.restoreMasterTable(SaveManager.java:827)
    ... 36 more

解决方法:
可能是丢失部分起动文件导致的。删除指定的工作目录下.metadata/.plugins的文件夹下所有文件,然后重起Eclipse!
 
还有一种情况,用着好好的,突然打不开.xml文件,打开时就卡死了,或者使用时设个断点之类的也卡死了,甚至点击一下打开的文件,也卡死了。
解决方法:
将工作目录里的那个.metadata删掉,重启Eclipse,导入工程。
分享到:
评论

相关推荐

    解决MyEclipse10安装VSS插件版本为1.6.2报错

    解决MyEclipse10安装VSS插件版本为1.6.2报错:An error has occurred. See error log for more details. (本人64win7 安装:10.7版本 64 位 32位 均可以使用) 原因:版本旧,原来做vss插件的后来就没有更新,现...

    DBeaver (dbeaver-ce-21.2.5-linux.gtk.aarch64-nojdk.tar.gz)

    DBeaver (dbeaver-ce-21.2.5-linux.gtk.aarch64-nojdk.tar.gz)适用于Linux ARM 64 位(不含 Java 的 zip)。DBeaver 是一个通用的数据库管理工具和 SQL 客户端,支持 MySQL, PostgreSQL, Oracle, DB2, MSSQL, ...

    CentOS 6.5服务器VNC远程桌面连接出错.docx

    CentOS 6.5 服务器 VNC 远程桌面连接出错解决方案 本文档提供了 CentOS 6.5 服务器 VNC 远程桌面连接出错的解决方案。首先,需要检查服务器是否已经安装了 VNC 服务,可以使用命令 `rpm -qa | grep vnc`来检查。...

    An internal error occurred during: java.lang.NullPointerException

    在使用MyEclipse进行Java开发的过程中,可能会遇到一个常见的问题:“An internal error occurred during: 'Calculating completion proposals...'”。这个错误通常伴随着`java.lang.NullPointerException`异常,...

    UltraEdit配置说明

    UltraEdit配置说明详细讲解了UltraEdit如何配置的问题 并附有图片 一目了然

    Eclipse运行TOMCAT 出现在a java exception has occurred的解决办法。

    Eclipse运行TOMCAT出现"a java exception has occurred"的解决办法 Eclipse是一款功能强大且广泛应用的集成开发环境(IDE),它支持多种编程语言,包括Java、C++、Python等。TOMCAT则是一款流行的Java Web服务器,...

    windows平台glog库

    - 错误和异常处理:`LOG(ERROR) << "An error occurred.";` 和 `LOG(FATAL) << "A fatal error occurred."` - 堆栈跟踪:FATAL级别的日志会自动打印堆栈跟踪信息。 - 日志文件配置:通过`FLAGS_logtostderr = 0;`...

    访问网站提示An error occurred on the server when processing the URL的解决方法

    解决方法:An error occurred on the server when processing the URL. Please contact the system administrator 在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误: An error occurred on the ...

    异常A generic error occurred in GDI+的解决办法

    在使用.NET Framework进行Windows应用程序开发时,可能会遇到一个常见的错误提示:“A generic error occurred in GDI+”。这个异常通常在处理图像、图形或者打印任务时出现,涉及到GDI+(Graphics Device Interface...

    log4j写日志

    logger.error("An error occurred.", e); // 包含异常信息 ``` **三、高级特性** 1. **自定义Appender**: 可以扩展Log4j,实现自己的Appender,例如发送日志到邮件、网络服务器等。 2. **过滤器**: 通过Filter...

    新课标人教版高中英语必修1-选修7单词默写(默写专用)无三角形.doc

    3. **upset** (adj./vt.)(upset, upset) - adj. 含义:不安的;烦恼的 - vt. 含义:使烦恼;打乱 - 例句:I feel really upset after hearing the news. / His actions upset our plans for the day. 4. **...

    Servelt技术做的E家园

    * if an error occurred * @throws IOException * if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ...

    An internal error occurred during: \"Building workspace\". Java heap space

    标题 "An internal error occurred during: \"Building workspace\". Java heap space" 描述的是一个常见的Eclipse集成开发环境(IDE)中的问题,当用户尝试构建工作区时遇到内存不足的情况。这个错误表明Eclipse在...

    英语四级词汇精简复习

    - **拓展**:*occurrence*(发生)、*occurred*(发生的)。 9. **reflect** (v.):反射;反映。 - 例句:The lake reflects the mountains perfectly. - **拓展**:*reflection*(反射)、*reflective*(反射性...

    java一个论坛的源码

    * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ...

    Java中文问题及最优解决方法

    编译器需要识别源文件的编码格式,如果编码设置不正确,可能会导致中文字符无法正确解析。 3. **运行阶段**:在执行Java程序时,JVM加载字节码文件并解释执行。如果JVM的字符编码设置与源文件或操作系统不一致,也...

    虚拟机安装注意点及目录共享

    - **问题描述**:在安装虚拟机的过程中,可能会遇到一个错误提示:“An error has occurred - no valid devices”。这通常是因为安装选项设置不当造成的。 - **解决方案**: - 在创建虚拟机时,避免选择“典型”...

    实践考核类课二 选课系统

    * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,...

Global site tag (gtag.js) - Google Analytics