Description Resource Path Location Type The project was not built due to "Could not delete '

在项目出现红叉时,提示Description Resource Path Location Type

The project was not built due to “Could not delete ‘/dkxt/web/WEB-INF/classes/com’.”. Fix the problem, then try refreshing this project and building it since it may be inconsistent dkxt Unknown Java Problem

解决办法

clean一下项目

一:clean项目的方法

Project->Clean…->然后选择你所要Clean的项目->OK
Description Resource Path Location Type The project was not built due to
Description Resource Path Location Type The project was not built due to
二:clean作用

eclipse为了提高效率,并不是每次启动项目都会检查插件,通过clean就是强制eclipse去检查已安装插件。

我们都知道.java文件是通过编译成.class文件运行的,而clean后会删除已经编译生成的.class文件并重新部署项目。

总而言之就是强制检查已安装插件,清除以前编译的信息,重新部署项目。

三:clean后无法正常运行程序

解决方案:

Properties->Java Compiler->Building->Build Path Problems->Abort Build when Build Path Errors Occur,把这个选项勾选掉就可以运行程序了。

你可能感兴趣的:(spring)