eclipse “构建工作空间”遇到错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25929458/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:25:02  来源:igfitidea点击:

'Building workspace' has encountered an error

eclipsemavenbuildworkspace

提问by KaO

Eclipse Luna 4.4.0

日食月神 4.4.0

Error occurred during the Build

构建过程中发生错误

Error instantiating builder 'ord.eclipse.m2e.core.maven2Builder'.
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder
An error occurred while automatically activating bundle org.eclipse.m2e.core (547).
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
An error occurred while automatically activating bundle org.eclipse.m2e.core (547).
Error instantiating builder 'org.eclipse.m2e.core.maven2Builder'.
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
An error occurred while automatically activating bundle org.eclipse.m23.core (547).
Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.MavenBuilder.
an error occurred while automatically activating bundle org.eclipse.m2e.core (547).

if i delete the folder .metadataand all .projectand .settingdata from my workspace, i get no error. After one day of work i′ll get the same error.

如果我删除该文件夹.metadata和所有.project.setting从我的工作区数据,我没有得到任何错误。工作一天后,我会得到同样的错误。

采纳答案by KaO

I uninstalled my Netbeans because Eclipse and Netbeans are both usin the same workspace.

我卸载了我的 Netbeans,因为 Eclipse 和 Netbeans 都在同一个工作区中使用。

i uninstalled Netbeans and the error is gone.

我卸载了 Netbeans,错误消失了。

回答by kingoleg

Try next steps:

尝试以下步骤:

  1. Go to your eclipse installation folder
  2. Run "eclipse.exe -clean"
  3. Work normally
  4. Enjoy
  1. 转到您的 eclipse 安装文件夹
  2. 运行“eclipse.exe -clean”
  3. 正常工作
  4. 享受

回答by nblair

I ran into this same issue and I believe the culprit to be the Sonarqube plugin I had installed.

我遇到了同样的问题,我相信罪魁祸首是我安装的 Sonarqube 插件。

This discussion pointed me in that direction:

这次讨论将我指向了这个方向:

http://forum.spring.io/forum/spring-projects/springsource-tool-suite/749864-sts-ggts-3-6-0-m1-released

http://forum.spring.io/forum/spring-projects/springsource-tool-suite/749864-sts-ggts-3-6-0-m1-released

Uninstalled the Sonarqube plugin and the error is gone.

卸载了 Sonarqube 插件,错误消失了。

回答by Daniel Vazquez

In my case, the problem resulted to be my Eclipse was running on an outdated IBM Java Virtual Machine. I updated my IBM JRE, I modified my eclipse.ini in order to update the -vm parameter so it points to the new installation, and it solved the problem.

就我而言,问题是我的 Eclipse 运行在过时的 IBM Java 虚拟机上。我更新了我的 IBM JRE,我修改了 eclipse.ini 以更新 -vm 参数,使其指向新安装,并解决了问题。

回答by Fury

In my case none of the above solutions worked. I used eclipse with two different workspaces, one works, seconds had this error. My solution was it to copy from the working workspace the following files over the corrupted one:

就我而言,上述解决方案均无效。我在两个不同的工作区中使用了 eclipse,一个有效,几秒钟出现了这个错误。我的解决方案是从工作工作区复制以下文件到损坏的文件:

[workspace]/.metadata/.plugins/org.eclipse.m2e.core
[workspace]/.metadata/.plugins/org.eclipse.m2e.core.ui
[workspace]/.metadata/.plugins/org.eclipse.m2e.jdt
[workspace]/.metadata/.plugins/org.eclipse.m2e.launching
[workspace]/.metadata/.plugins/org.eclipse.m2e.logback.configuration

I'm using eclipse mars 64-bit version. So maybe before your whole workspace gets broken this might be a solution from a clean installation to copy.

我正在使用 eclipse mars 64 位版本。因此,也许在您的整个工作区损坏之前,这可能是从全新安装到复制的解决方案。

回答by Achilles Ram Nakirekanti

exclude the error js files. it will definitely will work..

排除错误js文件。它肯定会工作..

回答by Scott

I keep my Workspace on Dropbox. I had this issue occur, and managed to solve it by searching within [workspace]/.metadata/ for the word 'conflicted' and deleting all these files Dropbox had created. Error was gone when I restarted Eclipse.

我在 Dropbox 上保留我的工作区。我遇到了这个问题,并设法通过在 [workspace]/.metadata/ 中搜索“冲突”一词并删除 Dropbox 创建的所有这些文件来解决它。当我重新启动 Eclipse 时错误消失了。

回答by Satya

I have added 'javaw.exe' in the bin file (C:\Program Files\Java\jdk-X.X.X\bin) as a System variable and deleted all the module info. This worked for me. However, this might be specific to the Enterprise Java package.

我在 bin 文件 (C:\Program Files\Java\jdk-XXX\bin) 中添加了“javaw.exe”作为系统变量并删除了所有模块信息。这对我有用。但是,这可能特定于 Enterprise Java 包。