启动Eclipse时发生An internal error occurred during: "Initializing Java Tooling"错误

时间:2023-03-09 18:52:03
启动Eclipse时发生An internal error occurred during: "Initializing Java Tooling"错误

详细提示如下:

An internal error occurred during: "Initializing Java Tooling". Illegal exception table range in class file org/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration
解决方法:
通过【重置窗口布局】,可解决大部分情况:
点击菜单导航栏的windows > perspective > reset perspective

(网上主流方案是删除一个配置文件夹,会对原有项目有影响,建议:如果【重置窗口布局】无效,再尝试那个方案。网上另一种说法JDK的问题,这种概率不大,检查eclipse全局属性中的Installed JRE是否引用了不存在的JDK)

如果上面的方法不行的话,再使用这样的解决方法:
删除当前工作目录下的WORKSPACE_HOME/.metadata/.plugins/org.eclipse.core.resources/.project,然后重新启动Eclipse