No compiler is provided in this environment. Perhaps you are running on a JRE

No compiler is provided in this environment. Perhaps you are running on a JRE,第1张

No compiler is provided in this environment. Perhaps you are running on a JRE

mac 上跑maven项目报错

No compiler is provided in this environment. Perhaps you are running on a JRE 解决:

1: 执行以下命令找到本地 Java 的jdk安装目录

/usr/libexec/java_home -V                                                  

执行 vim ~/.profile 设置下java的环境变量即可。

 

执行完后source ~/.profile 生效

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4873721.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-11
下一篇 2022-11-11

发表评论

登录后才能评论

评论列表(0条)

保存