2012-11-26 56 views
5

我在Eclipse的问题的窗口,上面写着一个错误....添加现有文件夹到Eclipse项目(STS)

The project was not built due to "Error deleting resource 'ProjectName/target/classes/log4j.xml' from the workspace tree." .Fix the problem, then try refreshing this project and building it since it may be inconsistent.

enter image description here

我遇到的问题是文件系统上存在classes/log4j.xml,但我无法导入它。当我前往文件>导入>常规>文件系统并选择classes/log4j.xml作为源时,我收到一条消息,说“源位于目标的层级”并且它不让我完成向导。

Can't import screenshot

什么我需要做的就是这个项目认识到

回答

5

提供目标文件夹,请参阅下From directory

Into folder文本字段,因为它是空的,Eclipse中认为,要将log4j.xml添加到同一位置

+0

这是说“源位于目标的层次结构中”。基本上IDE是自相矛盾的,因为该文件夹没有显示在IDE的项目中,但它不会让我从文件系统导入,因为它说它已经存在。 – Robert

相关问题