No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

maven构建项目的时候,碰到这个问题。

 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第1张图片

解决方法

1)window》preference》Java》installed JRES

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第2张图片 

2)移除已安装的错误的jdk路径,新增正确路径;选择standard VM 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第3张图片 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第4张图片 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第5张图片 

4)选择当前项目,右键选择Build  Path》configure Build Path 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第6张图片

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第7张图片 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?_第8张图片

你可能感兴趣的:(eclipse)