将现有文件夹添加到Eclipse项目(STS)

时间:2012-11-26 16:44:36

标签: eclipse

我在Eclipse的Problems窗口中出现错误,说明了......

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

我需要做什么才能让项目识别

1 个答案:

答案 0 :(得分:5)

提供目标文件夹,请参阅Into folder

下的From directory文字字段

由于它是空的,Eclipse认为你想将log4j.xml添加到同一个地方

相关问题