MyEclipse编译不了的解决办法: 1.点击【Window】——>【Perferences】
2.选择【Java】——【Compiler】--【Building】--"Build path problems"勾选 将其下按照如下图修改: