Unable to Compile: "No Compiler Provided"?
When attempting to compile a project in Eclipse using m2eclipse, an error message stating "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?" may appear. To resolve this issue, follow these steps:
Additionally, it may be necessary to change the Maven JRE by accessing "Run" -> "Run Configurations." Select the Maven Build you are running and navigate to the "JRE" tab. Choose the option "Workspace default JRE." A screenshot below illustrates this step.
[Image of the JRE tab with "Workspace default JRE" selected]
The above is the detailed content of Eclipse m2eclipse Compilation Error: How to Fix \'No Compiler Provided\'?. For more information, please follow other related articles on the PHP Chinese website!