mac 系統升級,導致 mvn 命令 報錯:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?


背景

某種原因導致系統升級,系統升級后, 發現 mvn 編譯有問題。一直報 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

問題是 系統升級所致:

查詢解決方案:

如下兩種方案都可以解決:

在 mvn 文件中 修改執行變量,推薦

Mac os Big Sur | No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

在 mvn 文件中 直接 寫死 JAVA_HOME變量

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM