No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project <project-name>: Compilation failure
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Solution
Go to Windows –> Preferences –> Java –> Installed JREs
Click on Add
Select Standard VM and then click on Next
Click on Directory to select JRE. You need to select installed JDK home path in your system as follows.
Click on Finish button. Then select JDK and click on Apply and Close as follows.
Right Click on your project –> Maven –> Update Project
Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting, Website Development, and IAM(ForgeRock) Specialist
I am a self-learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.