将java Maven项目导入Mac上的Eclipse juno后出错?

将java Maven项目导入Mac上的Eclipse juno后出错?,maven,Maven,我将maven项目从perforce-in导入到Mac上的eclipse-juno中,并刷新和更新了依赖项,但仍然会在所有maven项目上显示错误,而不是在java类上。 am使用mac 10.7.4和JSE 1.6 在问题门户中,我得到的警告描述为 Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatib

我将maven项目从perforce-in导入到Mac上的eclipse-juno中,并刷新和更新了依赖项,但仍然会在所有maven项目上显示错误,而不是在java类上。 am使用mac 10.7.4和JSE 1.6

在问题门户中,我得到的警告描述为

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.   
但是,如果我使用JDK1.6在windows上导入相同的项目,它工作正常,不会显示错误。
请建议。

检查eclipse配置并查看JRE配置。在eclipse上安装JRE的位置上安装JSE 1.6。我需要指向jdk或jre 1.5吗?尝试右键单击您的项目,选择属性-Java编译器,将编译器符合性级别更改为1.6。我更改了Java编译器,将编译器符合性级别更改为1.6,但仍然存在相同的问题。。。