eclipse Maven 编译失败 错误信息:No compiler is provided in this environment

  • Post author:
  • Post category:其他


eclipse编译项目不通过,控制台打印错误信息:

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

错误分析,开发工具IDE中没有指定 JDK,以eclipse为例:

点击 Window ==>> Preference,打开Preference窗口,如下图

再重新编译,即可通过。



版权声明:本文为qq_40391559原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。