1、This worked for me. 1. Click on Window-> Preferences -> Installed JRE. 2. Check if you reference is for JDK as shown in the image below.

11.png

2、If not, Click on Add-> Standard VM -> Give the JDK path by selecting the directory and click on finish as shown in the image enter image description here

12.png

3、Last step, click on Installed JREs -> Execution Environments -> select your JDE as shown in the image below enter image description here

13.png

4、Maven -> Clean




参考链接:https://stackoverflow.com/questions/21099072/eclipse-maven-error-no-compiler-is-provided-in-this-environment

欢迎留言