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的错误

相关文章:

  • 2021-09-05
  • 2021-07-04
  • 2022-12-23
  • 2021-07-21
  • 2021-12-10
  • 2021-11-04
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-04
相关资源
相似解决方案