我想在我的 manjaro 系統上使用 mvn 編譯一個專案,每次我得到這個錯誤:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK, not a JRE
有人可以幫忙嗎?
uj5u.com熱心網友回復:
自己找到了解決方案:
sudo archlinux-java set <target java package name>
例如:
sudo archlinux-java set java-15-jdk
在這里找到這個:https ://www.debugpoint.com/2021/02/install-java-arch/
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/425992.html
