Home > Java > javaTutorial > Eclipse m2eclipse Compilation Error: How to Fix \'No Compiler Provided\'?

Eclipse m2eclipse Compilation Error: How to Fix \'No Compiler Provided\'?

Mary-Kate Olsen
Release: 2024-11-27 15:37:14
Original
758 people have browsed it

Eclipse m2eclipse Compilation Error: How to Fix

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:

  1. Verify JDK Installation: Ensure that the JDK path is properly set in Eclipse. Navigate to "Windows" -> "Preferences" -> "Installed JREs" and check for a JDK entry.
  2. Set Execution Environment: Select the installed JDK and set it as the "Execution Environment." Click "OK" to confirm the changes.
  3. Maven Update: Right-click the project and select "Maven" -> "Update Project."

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template