运行构建器“Java Builder”时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19981634/
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-08-12 22:03:32  来源:igfitidea点击:

Errors running builder 'Java Builder '

javaeclipse

提问by lisa

Has anyone run into this issue and if so how do you fix it? This has been plaguing me for a while now.

有没有人遇到过这个问题,如果有,你如何解决?这已经困扰我一段时间了。

Here is the full error:

这是完整的错误:

enter image description here

在此处输入图片说明

I don't understand the problem. Please help me.

我不明白这个问题。请帮我。

I found an issue thanks @alfasin!!!:
I re-installed eclipse in a new folder and import my projects in this new Eclipse and everything is allright :)

我发现了一个问题,谢谢@alfasin !!!:
我在一个新文件夹中重新安装了 eclipse 并在这个新的 Eclipse 中导入了我的项目,一切都很好:)

回答by Aaron Digulla

Your .metadata probably got corrupted.

您的 .metadata 可能已损坏。

See this blog post for instructions how to clean this up: http://blog.pdark.de/2011/09/02/restoring-a-corrupted-workspace-in-eclipse/

有关如何清理它的说明,请参阅此博客文章:http: //blog.pdark.de/2011/09/02/restoring-a-corrupted-workspace-in-eclipse/

回答by Bilal Rabbani

If it is an Android application then follow these steps;

如果是 Android 应用程序,请按照以下步骤操作;

  1. Right click your project
  2. Goto "Android tools"
  3. Fix Project Properties
  1. 右键单击您的项目
  2. 转到“Android 工具”
  3. 修复项目属性

Always work for me.

永远为我工作。

回答by Umar Kayondo

I solved my build error in eclipse juno by restoring my eclipse work space. Reason being, the .metadata was corrupted so whenever i could try to build the project it could sometimes fail. Therefore you have to backup yr projects in a folder outside the main work space then deleted the whole work space folder. Restart eclipse and create a new work space and import yr projects into yr new work space. Everything will work normally after that.

我通过恢复 eclipse 工作空间解决了 eclipse juno 中的构建错误。原因是 .metadata 已损坏,因此每当我尝试构建项目时,它有时都会失败。因此,您必须在主工作空间之外的文件夹中备份 yr 项目,然后删除整个工作空间文件夹。重新启动 eclipse 并创建一个新的工作空间并将 yr 项目导入到 yr 新工作空间中。之后一切都会正常工作。

Thanks Umark

谢谢乌马克

回答by rohit verma

This kind of problem is very rare but we have the solution, If you are using gradle or maven then first close your project and delete from eclipse (remember don't delete from disk), then delete the files and directories from your project:

这种问题很少见,但我们有解决方案,如果您使用的是 gradle 或 maven,那么首先关闭您的项目并从 eclipse 中删除(记住不要从磁盘中删除),然后从您的项目中删除文件和目录:

  1. .settings/
  2. .project
  3. .classpath
  4. .gradle/
  1. .设置/
  2. 。项目
  3. .classpath
  4. .gradle/

then reimport the project in eclipse and you are done. you will no longer face the error like "Errors running builder 'Java Builder '"

然后在eclipse中重新导入项目,你就完成了。您将不再面临像“错误运行建设者的Java生成器“错误

Cheers.............

干杯.............

回答by keith.g

I resolved this by reverting the .cproject file in my project folder to an older version (which was created when I setup the project for the first time)

我通过将项目文件夹中的 .cproject 文件恢复到旧版本(这是我第一次设置项目时创建的)解决了这个问题

回答by Prasang Ramnani

While creating the java project on field -use an execution environmentselect javaSE-1.8then it will run

在现场创建 java 项目时- 使用执行环境选择javaSE-1.8然后它将运行