简体   繁体   English

由于“无法删除'/ Help / build / classes / exportFile'。”而无法构建该项目。

[英]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.

相关问题 由于“无法删除'/ maventestproject / target / test-classes / com'”,因此未构建该项目。 - The project was not built due to “Could not delete '/maventestproject/target/test-classes/com'.” 由于“无法删除'Coding Library / bin / assets'。”,因此未构建该项目。 - The project was not built due to “Could not delete 'Coding Library/bin/assets'.”. Android:Eclipse:由于无法删除v-7appcompat而无法构建项目 - Android: Eclipse : Project could not build due to cannot delete v-7appcompat eclipse:由于“无法读取文件... ~$somefile.xlsx”而未构建项目 - eclipse: Project not built due to “Could not read file … ~$somefile.xlsx” eclipse中的java错误“该项目由于......而未构建” - java error in eclipse "The project was not built due to.." 在 github 上设置 maven 工作流时,我不断收到此错误:“构建无法读取 1 个项目 -> [帮助 1]” - When setting up a maven workflow on github I keep getting this error: “The build could not read 1 project -> [Help 1]” Spring如何在项目中找到他的课程? - How could Spring find his classes in a project? 从Gradle Java项目构建的jar中排除所有已编译的类 - Exclude all compiled classes from jar built by gradle java project 将预建的Java类包含到android项目中 - including pre-built java classes into an android project 在eclipse项目的build_path中迭代类 - Iterating classes in build_path of eclipse project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM