the import cannot be resolved

来源:互联网 发布:javascript 跨域 采集 编辑:程序博客网 时间:2024/05/17 06:46

the import cannot be resolved

在家用的是jdk1.7 到单位后把项目导入后,出现

the import xxxxx  cannot be resolved

原来是myeclipse使用默认的jdk 1.6 所以出错
更改如下

然后 把jdk改一下就可以了