https://jingyan.baidu.com/article/a24b33cd0ca3c319fe002baf.html
总结起来就是
右键-properties-java build path -libraries->remove(显示红叉的)->add Library -JRE
-Server runtime
接下来就OK了。
如果还有错误并且项目没有详细指出是哪里的错误
可以参考
在构建插件时提示如下错误:
Description Resource Path Location Type The project was not built due to "Could not delete '
在网上查找时发现,最简单的解决方法是:project-->clean,选择出错的工程,点击确定错误即可消除。
https://blog.youkuaiyun.com/u010782846/article/details/50440847