Error: JAVA_HOME is incorrectly set. Please update F:\hadoop\conf\hadoop-env.cmd解决方法

时间:2022-12-17 23:08:23

啥都不说!直接上干货!

 

打开对应路径下的hadoop-env.cmd

 

set JAVA_HOME=%JAVA_HOME%

更换为绝对路径↓

set JAVA_HOME="E:\Development Software\Java\jdk1.8.0_72"

即可

--------------------------------------------------------------------------------------------------------

如安装在C盘下

C:\Program Files\Java\jdk1.8.0_91

则用路径替代符

C:\PROGRA~1\Java\jdk1.8.0_91

即可!

 

转载请声明出处,谢谢.