Eclipse不会清理或构建任何项目 [英] Eclipse doesn't clean or build any projects

查看:65
本文介绍了Eclipse不会清理或构建任何项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Eclipse Neon.每当我单击我的任何项目并尝试单击清理"或构建"时,它都不允许我执行-它是灰色的.不管我对代码进行任何更改还是执行其他任何操作都没有关系,它永远不会给我提供清理/构建的选项.

I'm running Eclipse Neon. Whenever I click on any of my projects and try to click clean or build it doesn't allow me to - it is greyed out. It doesn't matter if I make any changes to the code or do anything else, it never gives me the option to clean/build.

推荐答案

似乎您只有仅常规项目而没有构建器:右键单击项目,然后选择 属性 .在属性... 对话框中,在构建器中的查看是否列出了任何构建器.没有构建器,您的项目可能配置不正确.

It seems you have only general projects without builders: right-click on a project and choose Properties. In the Properties for ... dialog, in Builders look if there any builder listed. Without builders, your projects are probably configured incorrectly.

Builders (更改项目文件时执行,例如增量Java编译器)和 natures (指定可用的工具)在中设置/存储.项目文件(隐藏在 Projects/Packages Explorer 视图中,但显示在 Navigator 视图中,并且可以使用文本或XML编辑器进行编辑).例如,具有名称和项目文件夹 Foo 的纯Java项目的 .project 文件具有以下内容:

Builders (executed when project files are changed, e. g. incremental Java compiler) and natures (specifie which tooling is available) are set/stored in the .project file (which are hidden in the Projects/Packages Explorer view, but shown in the Navigator view and which can be edit with a text or XML editor). For example, the .project file of the plain Java project with the name and project folder Foo has the following content:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>Foo</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>

如果可用,您可以尝试右键单击一个项目,然后选择:配置>配置和检测嵌套项目...

If available, you may try right-click on a project and choose: Configure > Configure and detect nested projects...

这篇关于Eclipse不会清理或构建任何项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆