ElasticSearch and Java environment variable

前端 未结 10 1157
抹茶落季
抹茶落季 2020-12-28 12:38

For Windows 7, I\'ve installed JDK in both 32 and 64 bit versions. The versions are 8, update 20 for all four installations. http://www.oracle.com/technetwork/java/javase/d

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 13:41

    STEP 1

    Can you verify JAVA_HOME is set to C:\Progra~1\Java\jdk1.8.0_20,

    C:\>echo %JAVA_HOME%
    

    Also, verify java command is available,

     java -version
    

    Reference

    Check if JAVA_HOME is present in environment using batch script

    STEP 2

    If JAVA_HOME is not set, please follow the steps provided here - How to Set Java Home in windows

    Summary ,

    • Right-click the My Computer icon on your desktop and select Properties.
    • Click the Advanced tab. Click the Environment Variables button. Under System Variables, click New.
    • Enter the variable name as JAVA_HOME.
    • Enter the variable value as the installation path for the JDK.

      (eg. C:\Progra~1\Java\jdk1.8.0_20).

    • Click OK.
    • Click Apply Changes.

提交回复
热议问题