0
点赞
收藏
分享

微信扫一扫

The JAVA_HOME environment variable is not defined correctly的错误

吴wuwu 2022-03-30 阅读 67


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


centos 7 安装maven  

执行mvn -v  的时候报这个错误  发现是 java_home 的路径不对 

which java  找到java 的执行目录 修改下 /etc/profile的 java_home的路径 可以使用了 

The JAVA_HOME environment variable is not defined correctly的错误_centos


梅花香自古寒来


举报

相关推荐

0 条评论