eclipse clean的作用

来源:互联网 发布:最新软件开发方法 编辑:程序博客网 时间:2024/06/06 02:09

Clean will discard all build problems and built state.The projects will be rebuilt from scratch.
由于eclipse的编译是基于时间戳的判断机制的。
因此当你按build all的时候有些eclipse认为时间戳没有改变的类不会被编译。
因此你可以先clean一下再编译。这个时候eclipse会将所有的以前编译信息清除然后编译。
eclipse —>project —–>clean
选项将工程中的.class文件删除,同时rebuild(重新编译)工程
在许多项目中,我们修改代码之后往往会出现各种不可预料的问题,这时我们可以尝试着对项目进行clean然后重新编译,许多错误就可以解决了。

参考文章:http://blog.csdn.net/u012922219/article/details/51714881