[英]The project was not built due to “Could not delete '/Help/build/classes/exportFile'.”.
When I imported my project in Eclipse Oxygen, it gave the below error. 当我在Eclipse Oxygen中导入项目时,出现以下错误。 "The project was not built due to "Could not delete '/Help/build/classes/exportFile'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent"
“由于“无法删除'/ Help / build / classes / exportFile',所以未构建该项目。”解决此问题,然后尝试刷新并构建该项目,因为它可能不一致。
Googled and got that to delete the contents of the bin folder and clean the project. 谷歌搜索并删除了bin文件夹中的内容并清理了项目。 But there's no bin folder.
但是没有bin文件夹。 Tried cleaning, still the same error.
尝试清洁,仍然是同样的错误。 What else can be done
还有什么可以做的
You found a solution yourself, but here are some more informations about this error. 您自己找到了解决方案,但是这里有有关此错误的更多信息。
First, you said, your search brought up answers where deleting the bin
-directory manually solves this but you don't have this directory. 首先,你说,你的搜索长大的地方删除答案
bin
-Directory手动解决这一点,但你没有这个目录有。 Reason for that is that you configured your project to write classes to the classes
-directory ( bin
is the default). 这样做的原因是您将项目配置为将类写入
classes
-directory( bin
是默认值)。
The "cannot delete" message appears mainly on Windows systems if there is another process keeping a lock on the directory or files within. 如果还有另一个进程在其中锁定目录或文件,则“无法删除”消息主要出现在Windows系统上。 The classic reason for that is that you currently run the application or that you have an Explorer window open that shows the content of this directory.
这样做的经典原因是您当前正在运行该应用程序,或者已打开一个显示此目录内容的资源管理器窗口。 Closing the application/Explorer window normally solves the problem.
关闭应用程序/资源管理器窗口通常可以解决问题。 Sometimes the lock keeps staying.
有时锁会保持住。 A way to find the culprit is using Sysinternal's ProcessExplorer.
查找原因的一种方法是使用Sysinternal的ProcessExplorer。 It allows you to search for it by using
Find
-> Find handle or DLL
. 它允许您使用
Find
> Find handle or DLL
。 The result can be clicked on and you can even forcefully close that entry, releasing the lock (some programs don't like that but I never had any problems doing that). 可以单击结果,甚至可以强行关闭该条目,从而释放锁(某些程序不喜欢这样,但是我这样做没有任何问题)。
But sometimes it's actually necessary to reboot the system if you can't get rid off the lock otherwise. 但是有时候,如果您无法摆脱锁定,实际上确实有必要重新启动系统。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.