maven install 执行时,No compiler 问题处理

 时间:2026-02-15 06:10:09

1、在 Eclipse 中,对一个工程执行 Maven install 操作,报了如下错误:

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

从错误信息上看,貌似是艳慎我们的Eclipse配置了JRE,而不是要求的JDK。

maven install 执行时,No compiler 问题处理

maven install 执行时,No compiler 问题处理

2、打开 "Window-->Preferences-->Installed JREs" 菜单项,确认我们这欧醒针里确实配置并使用 JRE!

点击右侧 “Add”按钮,添加并配置 JDK,并且记得删除原始的那个 JRE 项,并点击下方的 “Apply”按钮进行确认。

maven install 执行时,No compiler 问题处理

maven install 执行时,No compiler 问题处理

maven install 执行时,No compiler 问题处理

3、再次执行  Maven Install 命令,这次就能指行成功哄政了!

maven install 执行时,No compiler 问题处理

  • win10系统托盘图标怎么隐藏
  • 电脑接多个显示器,使其显示不同内容。
  • win10系统怎么删除外设设备?
  • C# Serialport类控件属性详解
  • Windows 7操作系统查看Txt文档内容
  • 热门搜索
    色素沉着怎么办 b超单怎么看 2岁宝宝食谱大全及做法 三年级下册手抄报大全 月亮简笔画图片大全 正版资料大全 净资产收益率怎么算 作文素材大全 十二生肖图片大全大图 李易峰照片大全