翻译 解决 Resource Already Exists on Disk Errors in Eclipse
2014-03-01 11:32
597 查看
导入了一个存在的项目,出现不能编译的情况,因为出现如图所示错误:
![](http://images.cnitblog.com/i/370797/201403/011116329154168.jpg)
出现这个情况,如果只是删除目录,以及相关的类,刷新后 不会报错,但是当重新编译,又会出现相同的情况。
现在有一个更好的解决办法,就是让 eclipse 不拷贝冲突的文件到输出目录:
1. 选中项目,右键 properties;
2.选择 java compiler ->Building
3.选中 Enable project specific settings
4.在 Filtered resource box 里面输入你不想拷贝的文件
5.重新编译文件,就搞定。
在这个项目中, 我添加了 “*.properties, *.xslt” 到Filterer resource box 当中.
见下图:
![](http://images.cnitblog.com/i/370797/201403/011131083539120.jpg)
过滤框 图:
![](http://images.cnitblog.com/i/370797/201403/011131394082472.jpg)
翻译原文地址:http://betweengo.com/2012/07/02/fixing-resource-already-exists-on-disk-errors-eclipse/
![](http://images.cnitblog.com/i/370797/201403/011116329154168.jpg)
出现这个情况,如果只是删除目录,以及相关的类,刷新后 不会报错,但是当重新编译,又会出现相同的情况。
现在有一个更好的解决办法,就是让 eclipse 不拷贝冲突的文件到输出目录:
1. 选中项目,右键 properties;
2.选择 java compiler ->Building
3.选中 Enable project specific settings
4.在 Filtered resource box 里面输入你不想拷贝的文件
5.重新编译文件,就搞定。
在这个项目中, 我添加了 “*.properties, *.xslt” 到Filterer resource box 当中.
见下图:
![](http://images.cnitblog.com/i/370797/201403/011131083539120.jpg)
过滤框 图:
![](http://images.cnitblog.com/i/370797/201403/011131394082472.jpg)
翻译原文地址:http://betweengo.com/2012/07/02/fixing-resource-already-exists-on-disk-errors-eclipse/
相关文章推荐
- Eclipse使用Git导入项目时可能出现的错误【A .project file already exists in directory】解决办法
- Eclipse 出现A configuration with this name already exists问题解决方法
- eclipse A .project file already exists in directory
- [已解决]:Eclipse 中调用 tomcat 出错: java.net.BindException: Address already in use: JVM_Bind
- 解决eclipse中运行web项目时弹出的"Port 8080 required by Tomcat v7.0 Server at localhost is already in use... "
- PHP Warning: Module 'modulename' already loaded in Unknown on line 0 的解决方法
- “A configuration with this name already exists” error in eclipse run configurations
- 解决Eclipse导入项目是提示错误:Some projects cannot be imported because they already exist in the workspace
- Eclipse中创建Maven项目时,报错提示:“a pom xml file already exists in the destination folder ”
- Eclipse中Android项目Errors running builder 'Android Resource Manager' on project XXX
- Eclipse Some projects cannot be imported because they already exist in the workspace 最便捷解决办法
- eclipse res/bin 变成白块。gen already exists but is not a source folder----解决办法
- Maven:Failed to create a Maven project ‘…pom.xml’ already exists in VFS 解决
- address already in use :JVM_Bind eclipse或者myEclipse端口号被占用的解决方法
- 解决Eclipse中启动Tomcat时出现 Port 8080 required by Tomcat v8.5 Server at localhost is already in use...
- [转]eclipse android : A project with that name already exists in the workspace
- Eclipse中出现Errors running builder "Integrated External Tool Builder" on project问题解决方法
- Eclipse Some projects cannot be imported because they already exist in the workspace 解决办法
- eclipse android : A project with that name already exists in the workspace
- rcp(插件开发)Part already exists in page layout 解决之道