Eclipse 右键菜单中缺少“构建”选项

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

The missing of the "build" option in right-click menu in Eclipse

eclipse

提问by tatiana_c

I added a jar file to the lib folder in android project in Eclipse Indigo. I want to add this file to build, but i don't have build option in the file righ-click menu. Any idea why I don't have it? How can I add it to build anyway? Thanks.

我在 Eclipse Indigo 的 android 项目中的 lib 文件夹中添加了一个 jar 文件。我想将此文件添加到构建中,但文件右键单击菜单中没有构建选项。知道为什么我没有吗?我怎样才能将它添加到构建中?谢谢。

采纳答案by disorder

  1. If you can't build the whole project: The eclipse project you want to build may have not any builder assigned. I suggest you to verify the 'builders' tab in your project settings. You may have choosen the wrong project type when creating or importing your project.
  2. If you want to add the jar to the build: Add the jar to Java Build Path in project properties (as a library)
  1. 如果您无法构建整个项目:您要构建的 eclipse 项目可能没有分配任何构建器。我建议您验证项目设置中的“构建器”选项卡。您在创建或导入项目时可能选择了错误的项目类型。
  2. 如果要将 jar 添加到构建中:将 jar 添加到项目属性中的 Java 构建路径(作为库)

回答by vovahost

I had the same problem. It's just an Eclipse normal behaviour.
Check if in menu Project-> Build Automaticallyis selected. To activate the Buildoption just deactivate Build Automaticallyoption.

我有同样的问题。这只是 Eclipse 的正常行为。
检查是否在菜单Project-> Build Automatically 中被选中。要激活构建选项,只需停用自动构建选项。