No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- On your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there.
- Select the Execution Env as show below. Click OK
- Then Right-Click on your Project -> Maven -> Update Project
Additionally, you may have to change Maven JRE (see @jlars62 answer) which is as follows. Goto Run -> Run Configurations, selecting the Maven Build I was running (from the left panel). Then, I clicked the JRE tab and selected the option Workspace default JRE
For me, it is exactly what the maven of eclipse complains
So, I press Edit
button and change path to the JDK Folder, then clean project and everything starts to work
- Set the
JAVA_HOME
environment variable to the JDK root folder - required if you run command line or maven (mvn
).- (Search google for
JAVA_HOME
for more info)
- (Search google for
- In project properties in section Java Compiler select required JDK - if you run directly from eclipse