Home >Java >javaTutorial >Why Does Eclipse Show \'No Compiler is Provided\'?
Compiler Error: Running on a JRE Instead of JDK
When compiling projects in Eclipse using m2eclipse, users may encounter the error "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?" This indicates that the project is attempting to compile with a Java Runtime Environment (JRE), which lacks the compilation capabilities of a Java Development Kit (JDK).
To resolve this issue, follow these steps:
Additionally, verify the Maven JRE settings by following these steps:
By performing these steps, Eclipse will recognize the installed JDK and allow you to compile projects successfully.
The above is the detailed content of Why Does Eclipse Show 'No Compiler is Provided'?. For more information, please follow other related articles on the PHP Chinese website!