当重启电脑之后,需要重新使用maven工具的以后,输入
mvn -v
都显示
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
解决方案:
只需要重新在终端执行source ~/.bash_profile 即可。
source ~/.bash_profile
当重启电脑之后,需要重新使用maven工具的以后,输入
mvn -v
都显示
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
解决方案:
只需要重新在终端执行source ~/.bash_profile 即可。
source ~/.bash_profile