错误:The JAVA_HOME environment variable is not defined correctly
解决The JAVA_HOME environment variable is not defined correctly

无论是maven还是tomcat,总是提示:

NB: JAVA_HOME should point to a JDK not a JRE

早先以为环境变量配置错误,但java和javac均能够执行,便一直没有找到原因。

解决:

JAVA_HOME后一定不能加分号

解决The JAVA_HOME environment variable is not defined correctly

由于win10对环境变量采用了新的编辑模式,所以这个分号很容易被自动添加上,而且容易被忽视掉!!!

相关文章:

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