:D
1、eclipse 中refresh and clean 有什么作用?
clean--将工程中的.class文件删除,同时重新编译工程(Java文件),类似于jbuild中的rebuild。
refresh--用来同步eclipse环境内外的文件结构。比如,你需要把一些jar自包含到工程中,你通过资源管理器将jar文件拷到工程目录下。此时,在eclipse的工程中添加jar包,是找不到刚才拷的那个包的。这是就需要用LZ说的命令刷新一下这个工程。相对的,如果在资源管理器里选中欲包含的jar包,在eclipse的workspace窗口的一个目录上点右键,选粘贴。此时就不需要刷新工程直接就可以看到这个文件。
English:
Q:What is the difference between refresh (select project, right click and refresh) and clean in Eclipse?
A:Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).
1、eclipse 中refresh and clean 有什么作用?
clean--将工程中的.class文件删除,同时重新编译工程(Java文件),类似于jbuild中的rebuild。
refresh--用来同步eclipse环境内外的文件结构。比如,你需要把一些jar自包含到工程中,你通过资源管理器将jar文件拷到工程目录下。此时,在eclipse的工程中添加jar包,是找不到刚才拷的那个包的。这是就需要用LZ说的命令刷新一下这个工程。相对的,如果在资源管理器里选中欲包含的jar包,在eclipse的workspace窗口的一个目录上点右键,选粘贴。此时就不需要刷新工程直接就可以看到这个文件。
English:
Q:What is the difference between refresh (select project, right click and refresh) and clean in Eclipse?
A:Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).