无法在项目 angular-ssr-example 上执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile)

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project angular-ssr-example

我有一个 Angular 和 spring 引导应用程序,但是当我 运行 时,我得到以下错误。我在 google 中搜索,但没有找到任何解决方案。

无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project angular-ssr-example: Compilation failure [错误] 此环境中未提供编译器。也许您 运行 正在使用 JRE 而不是 JDK?

Error Image

错误信息已经告诉你原因了。您可能 运行 是 JRE 而不是 JDK 的行家。在 "Installed JREs" 检查 eclipse 首选项。如果没有JDK到select,从Oracle主页安装一个JDK然后在这个window里select。然后编译应该工作。