getting JAVA_HOME is incorrectly set with hadoop

前端 未结 6 1558
灰色年华
灰色年华 2020-12-14 03:48

I just downloaded hadoop and unzipped the file. but when I run hadoop version command from command prompt , I\'m getting below error . I double check and JAVA_HOME is set t

6条回答
  •  無奈伤痛
    2020-12-14 04:04

    Your JAVA_HOME should not include bin. Change it from

    "C:\Program Files\Java\jdk1.8.0_45\bin"
    

    to

    "C:\Program Files\Java\jdk1.8.0_45"
    

    And you can add it to your path (in Windows) like

    set "PATH=%PATH%;%JAVA_HOME%\bin"
    

提交回复
热议问题