Home >Java >javaTutorial >How to Fix Maven Compiler Error: \'No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?\'
Maven Compiler Error: "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?"
This error occurs when Eclipse cannot find a Java Development Kit (JDK) to compile your project. This is because you are likely using a Java Runtime Environment (JRE) instead, which does not include the necessary utilities for compiling code.
Solution:
Configure Eclipse to use a JDK:
Update Maven Project:
Additional Tips:
Check the Maven JRE settings in your project's run configurations:
The above is the detailed content of How to Fix Maven Compiler Error: \'No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?\'. For more information, please follow other related articles on the PHP Chinese website!