Myeclipse 无法编译
解决方法(百度):
1:下面说一下解决问题的思路:点击project->clean清除部署文件
2:检查project properties->java build path->default output folder
3:检查project properties->java build path->libraries看所有的库包是否正确导入
4:删除引用的所有库包,然后重新导入试试
5:如果还有问题,看看jdk的配置是否有问题
===================================
自己的原因:自己打开了web-Inf/classes/config/db.properties 文件
点击project->clean没有干净的清除classes下的内容
Problems标签下有提示错误:
Description Resource Path Location Type
The project was not built due to "Could not delete '/jxwfkjlweb/WebRoot/WEB-INF/classes/config'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent jxwfkjlweb Unknown Java Problem
总结:如果不能编译找不出原因,可以打开Problems标签看看有没有error提示