问题描述:Eclipse中检出新项目后报编译错误,之前检出过正常可用。
编译错误详情:
①Java compiler level does not match the version of the installed Java project facet.
②'<>' operator is not allowed for source level below 1.7
③Access restriction: The constructor 'BASE64Decoder()' is not API (restriction on required library 'D:\Program Files\Java\jre7\lib\rt.jar')
解决方式:
选中项目->右键“Build Path -> Configure Build Path...”->打开窗口中,移除或重新添加【JRE System Library[jre7]】即可,见下图。