the import cannot be resolved 在家用的是jdk1.7 到单位后把项目导入后,出现 the import xxxxx cannot be resolved 原来是myeclipse使用默认的jdk 1.6 所以出错 更改如下 然后 把jdk改一下就可以了